mxGetClassID (C and Fortran) - Get class of mxArray

C Syntax

#include "matrix.h"
mxClassID mxGetClassID(const mxArray *pm);

Fortran Syntax

integer*4 mxGetClassID(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

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.

Description

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.

C Examples

See

See Also

mxClassID, mxGetClassName

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS