MATLAB Application Program Interface Reference | Help Desk |
mxGetData
Get pointer to data
#include "matrix.h" void *mxGetData(const mxArray *array_ptr);array_ptr 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