Class of array as string
Use mxGetClassName
for classes defined without a classdef
statement.
#include "matrix.h" const char *mxGetClassName(const mxArray *pm);
#include "fintrf.h" character*(*) mxGetClassName(pm) mwPointer pm
pm
Pointer to an mxArray
Class (as a string) of the mxArray
pointed to by
pm
.
Call mxGetClassName
to determine the class of an
mxArray
. The class of an mxArray
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