MATLAB Application Program Interface Reference | Help Desk |
mxGetClassName
Get (as a string) anmxArray's
class
#include "matrix.h" const char *mxGetClassName(const mxArray *array_ptr);array_ptr The class (category) of
array_ptr
.
Call mxGetClassId
to determine the class of an mxArray
. The class of an mxArray
identifies the kind of data the mxArray
is holding. For example, if array_ptr
points to a sparse mxArray
, then mxGetClassID
returns "mxSPARSE_CLASS"
.
mxGetClassID
is similar to mxGetClassName
, except that the former returns the class as an enumerated value and the latter returns the class as a string.
See mxGetClassName.c
in the mx
subdirectory of the examples
directory.
mxGetClassID