mxClassIDFromClassName (Fortran)

Identifier corresponding to class

Fortran Syntax

integer*4 mxClassIDFromClassName(classname)
character*(*) classname

Arguments

classname

character array specifying a MATLAB® class name. For a list of valid classname choices, see the mxIsClass reference page.

Returns

Numeric identifier used internally by MATLAB software to represent the MATLAB class, classname. Returns unknown if classname is not a recognized MATLAB class.

Description

Use mxClassIDFromClassName to obtain an identifier for any MATLAB class. This function is most commonly used to provide a classid argument to mxCreateNumericArray and mxCreateNumericMatrix.

Examples

See the following examples in matlabroot/extern/examples/refbook.

Was this topic helpful?