External Interfaces/API Reference | ![]() ![]() |
C Syntax
#include "matrix.h" void *mxGetData(const mxArray *array_ptr);
Arguments
array_ptr
Pointer to an mxArray
.
Description
Similar to mxGetPr
, except mxGetData
returns a void *
. Use mxGetData
on numeric arrays with contents other than double
.
Examples
See phonebook.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
![]() | mxGetClassName | mxGetDimensions | ![]() |