External Interfaces Reference Previous page   Next Page
mxIsClass

Determine if mxArray is member of specified class

Fortran Syntax

Arguments

pm
   Pointer to an array.

classname
   A character array specifying the class name you are testing for. You can specify any one of the following predefined constants.

cell
char
double
function_handle
int8
int16
int32
logical
object
single
struct
uint8
uint16
uint32
<class_name>
unknown

In the table, <class_name> represents the name of a specific MATLAB custom object. You can also specify one of your own class names.

Returns

Logical 1 (true) if pm points to an array having category classname, and logical 0 (false) otherwise.

Description

Each mxArray is tagged as being a certain type. Call mxIsClass to determine if the specified mxArray has this type.

Example

is equivalent to calling either one of the following

It is more efficient to use the mxIsDouble form.

See Also

mxIsEmpty, mxGetClassID


Previous page  mxIsChar mxIsComplex Next page

© 1994-2005 The MathWorks, Inc.