| MATLAB® | ![]() |
#include "matrix.h" mxClassID mxGetClassID(const mxArray *pm);
integer*4 mxGetClassID(pm) mwPointer pm
Pointer to an mxArray
A numeric identifier of the class (category) of the mxArray that pm points to. The C-language class identifiers are listed in the mxClassID reference page.
Use 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 pm points to a logical mxArray, then mxGetClassId returns mxLOGICAL_CLASS (in C).
mxGetClassId is similar to mxGetClassName, except that the former returns the class as an integer identifier and the latter returns the class as a string.
See
phonebook.c in the refbook subdirectory of the examples directory
explore.c in the mex subdirectory of the examples directory
![]() | mxGetChars (C) | mxGetClassName (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |