External Interfaces Reference |
Get class of mxArray
as string
C Syntax
Arguments
array_ptr
Pointer to an mxArray
.
Returns
The class (as a string) of array_ptr
.
Description
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 array_ptr
points to a logical mxArray
, then mxGetClassName
returns logical
.
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.
Examples
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.
See Also
mxGetClassID | mxGetData |
© 1994-2005 The MathWorks, Inc.