Class of mxArray as string
Use mxGetClassName
for classes defined without a classdef
statement.
#include "matrix.h" const char *mxGetClassName(const mxArray *pm);
mxGetClassName
returns the class of an mxArray
.
The class identifies the kind of data the mxArray
is holding. For example,
if pm
points to a logical mxArray
,
mxGetClassName
returns logical
.
mxGetClassID
is similar to the mxGetClassName
function.
See these examples in
:matlabroot
/extern/examples/mex
See these examples in
:matlabroot
/extern/examples/mx