mxIsClass (Fortran)
Determine whether mxArray is object of specified class
Fortran Syntax
#include "fintrf.h" integer*4 mxIsClass(pm, classname) mwPointer pm character*(*) classname
Description
Each mxArray is tagged as being a certain type.
mxIsClass returns 1 if the
mxArray is of the specified type. Otherwise, the function returns
0.
MATLAB® does not check if the class is derived from a base class.
In Fortran:
mxIsClass(pm, 'double')
is equivalent to calling either one of the following:
mxIsDouble(pm) mxGetClassName(pm) .eq. 'double'
It is more efficient to use the mxIsDouble form.
Input Arguments
Version History
Introduced before R2006a