| MATLAB® | ![]() |
#include "matrix.h" const char *mxGetClassName(const mxArray *pm);
character*(*) mxGetClassName(pm) mwPointer pm
Pointer to an mxArray
The 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 mxGetClassName, except that the former returns the class as an integer identifier, as listed in the mxClassID reference page, and the latter returns the class as a string, as listed in the mxIsClass reference page.
See mexfunction.c in the mex subdirectory of the examples directory. For an additional example, see mxisclass.c in the mx subdirectory of the examples directory.
![]() | mxGetClassID (C and Fortran) | mxGetData (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |