MATLAB Application Program Interface | Search  Help Desk |
mxGetData | Examples See Also |
#include "matrix.h" void *mxGetData(const mxArray *array_ptr);array_ptr
mxArray
.
Similar to mxGetPr
, except mxGetData
returns a void *
. Use mxGetData
on numeric arrays with contents other than double
.
type = mxGetClass(prhs[0]); switch type case mxUNIT8_CLASS: data = (unsigned char *)mxGetData(prhs[0]); . . .
mxGetPr