Main Content

mxGetClassName (C)

Class of mxArray as string

UsemxGetClassNamefor classes defined without aclassdefstatement.

C Syntax

#include "matrix.h" const char *mxGetClassName(const mxArray *pm);

Description

mxGetClassNamereturns the class of anmxArray. The class identifies the kind of data themxArrayis holding. For example, ifpmpoints to a logicalmxArray,mxGetClassNamereturnslogical.

mxGetClassIDis similar to themxGetClassNamefunction.

  • mxGetClassIDreturns the class as an integer identifier, as described inmxClassID.

  • mxGetClassNamereturns the class as a string, as described inmxIsClass.

Input Arguments

expand all

Pointer to anmxArrayarray, specified asconst mxArray*.

Output Arguments

expand all

Class name, specified asconst char*.

Examples

See these examples inmatlabroot/extern/examples/mex:

See these examples inmatlabroot/extern/examples/mx:

Version History

Introduced before R2006a