Main Content

mxClassIDFromClassName (Fortran)

Identifier corresponding to class

Fortran Syntax

#include "fintrf.h"
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 these examples in matlabroot/extern/examples/refbook:

Version History

Introduced before R2006a