Main Content

mxClassID

Enumerated value identifying class of array

C Syntax

typedef enum {
        mxUNKNOWN_CLASS,
        mxCELL_CLASS,
        mxSTRUCT_CLASS,
        mxLOGICAL_CLASS,
        mxCHAR_CLASS,
        mxVOID_CLASS,
        mxDOUBLE_CLASS,
        mxSINGLE_CLASS,
        mxINT8_CLASS,
        mxUINT8_CLASS,
        mxINT16_CLASS,
        mxUINT16_CLASS,
        mxINT32_CLASS,
        mxUINT32_CLASS,
        mxINT64_CLASS,
        mxUINT64_CLASS,
        mxFUNCTION_CLASS
} mxClassID;

Description

Various C Matrix API functions require or return an mxClassID argument. mxClassID identifies how the mxArray represents its data elements.

Constants

mxUNKNOWN_CLASS

Undetermined class. You cannot specify this category for an mxArray. However, if mxGetClassID cannot identify the class, it returns this value.

mxCELL_CLASS

Cell mxArray.

mxSTRUCT_CLASS

Structure mxArray.

mxLOGICAL_CLASS

Logical mxArray of mxLogical data.

mxCHAR_CLASS

String mxArray of mxChar data.

mxVOID_CLASS

Reserved.

mxDOUBLE_CLASS

Numeric mxArray of either real or complex data types.

MATLAB® Typedouble
C Real Data Type typedef double mxDouble;
C Complex Data Type typedef struct { mxDouble real, imag; } mxComplexDouble;

mxSINGLE_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

single

C Real Data Type

typedef float mxSingle;

C Complex Data Type

typedef struct { mxSingle real, imag; } mxComplexSingle;

mxINT8_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

int8

C Real Data Type

typedef int8_T mxInt8;

C Complex Data Type

typedef struct { mxInt8 real, imag; } mxComplexInt8;

mxUINT8_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

uint8

C Real Data Type

typedef uint8_T mxUint8;

C Complex Data Type

typedef struct { mxUint8 real, imag; } mxComplexUint8;

mxINT16_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

int16

C Real Data Type

typedef int16_T mxInt16;

C Complex Data Type

typedef struct { mxInt16 real, imag; } mxComplexInt16;

mxUINT16_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

uint16

C Real Data Type

typedef uint16_T mxUint16;

C Complex Data Type

typedef struct { mxUint16 real, imag; } mxComplexUint16;

mxINT32_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

int32

C Real Data Type

typedef int32_T mxInt32;

C Complex Data Type

typedef struct { mxInt32 real, imag; } mxComplexInt32;

mxUINT32_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

uint32

C Real Data Type

typedef uint32_T mxUint32;

C Complex Data Type

typedef struct { mxUint32 real, imag; } mxComplexUint32;

mxINT64_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

int64

C Real Data Type

typedef int64_T mxInt64;

C Complex Data Type

typedef struct { mxInt64 real, imag; } mxComplexInt64;

mxUINT64_CLASS

Numeric mxArray of either real or complex data types.

MATLAB Type

uint64

C Real Data Type

typedef uint64_T mxUint64;

C Complex Data Type

typedef struct { mxUint64 real, imag; } mxComplexUint64;

mxFUNCTION_CLASS

Identifies a function handle mxArray.

Examples

See these examples in matlabroot/extern/examples/mex:

Version History

Introduced before R2006a