Take a look at the demo expl.c MEX function you can open in MATLAB using
edit([matlabroot '/extern/examples/mex/explore.c']);
There you will find a bunch of functions whose names begin with analyze_ , and then of type (for example, analyze_uint8 ). In these functions, you will see the output of mxGetData calls that will be passed to a specific type C, for example:
pr = (unsigned char *)mxGetData(array_ptr);
pr now points to the real part of array_ptr , an unsigned char array.
SCFrench
source share