On attempting to build it with mbuild I get errors indicating that mxGetDoubles and mxSetDoubles, which I'd used in the wrapper function.
I've created a wrapper library to allow me to call a function using C native types (my intention is to produce a DLL that can be imported into LabVIEW).
Matlab get I have a MATLAB script compiled into a DLL using mcc.