MATLAB Application Program Interface Reference | Help Desk |
mxIsClass
True ifmxArray
is a member of the specified class
#include "matrix.h" bool mxIsClass(const mxArray *array_ptr, const char *name);array_ptr name
The array category that you are testing. Specify name
as a string (not as an enumerated constant). You can specify any one of the predefined constants, which are:
|
---|
true
if array_ptr
points to an array having category name
; otherwise, returns false
.
Each mxArray
is tagged as being a certain type. Call mxIsClass
to determine if the specified mxArray
has this type.
See mxIsClass.c
in the mx
subdirectory of the examples
directory.
mxIsEmpty
, mxGetClassID
, mxClassID