| MATLAB Application Program Interface | Search  Help Desk |
| mxIsClass | Examples See Also |
True if mxArray is a member of the specified class
C Syntax
#include "matrix.h" bool mxIsClass(const mxArray *array_ptr, const char *name);
Arguments
array_ptrname as a string (not as an enumerated constant). You can specify any one of the following predefined constants:mxIsClass("double");
is equivalent to calling
mxIsDouble(array_ptr);which is equivalent to calling
strcmp(mxGetClassName(array_ptr), "double");Note that it is most efficient to use the
mxIsDouble form.
Returns
true if array_ptr points to an array having category name; otherwise, returns false.
Description
EachmxArray is tagged as being a certain type. Call mxIsClass to determine if the specified mxArray has this type.
Example
Seemxisclass.c in the mx subdirectory of the examples directory.
See Also
mxIsEmpty, mxGetClassID, mxClassID