| MATLAB Application Program Interface | Search  Help Desk |
| mxGetData | Examples See Also |
C Syntax
#include "matrix.h" void *mxGetData(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Description
Similar tomxGetPr, except mxGetData returns a void *. Use mxGetData on numeric arrays with contents other than double.
Examples
Seephonebook.c in the refbook subdirectory of the examples directory.
For additional examples, see mxcreatecharmatrixfromstr.c and mxisfinite.c in the mx subdirectory of the examples directory.
See Also
mxGetPr