Main Content

Primitive Types

The mwArray API supports all primitive types that can be stored in a MATLAB® array. This table lists all the types.

Type

Description

mxClassID

mxChar

Character type

mxCHAR_CLASS

mxLogical

Logical or Boolean type

mxLOGICAL_CLASS

mxDouble

Double-precision floating-point type

mxDOUBLE_CLASS

mxSingle

Single-precision floating-point type

mxSINGLE_CLASS

mxInt8

1-byte signed integer

mxINT8_CLASS

mxUint8

1-byte unsigned integer

mxUINT8_CLASS

mxInt16

2-byte signed integer

mxINT16_CLASS

mxUint16

2-byte unsigned integer

mxUINT16_CLASS

mxInt32

4-byte signed integer

mxINT32_CLASS

mxUint32

4-byte unsigned integer

mxUINT32_CLASS

mxInt64

8-byte signed integer

mxINT64_CLASS

mxUint64

8-byte unsigned integer

mxUINT64_CLASS