Main Content

mxGetClassID (Fortran)

Class of mxArray

Fortran Syntax

#include "fintrf.h"
integer*4 mxGetClassID(pm)
mwPointer pm

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 like mxGetClassName, except that the former returns the class as an integer identifier and the latter returns the class as a string.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.

Output Arguments

expand all

Numeric identifier of the class (category) of the mxArray, specified as integer*4. For user-defined types, mxGetClassId returns a unique value identifying the class of the array contents. Use mxIsClass to determine whether an array is of a specific user-defined type.

Introduced before R2006a