Data Types

C language types and constants

Use the mxArray type to declare MATLAB® array variables in your programs. The mxClassIDfunction shows how to use MATLAB types with their equivalent C types.

Types for C

mxArray Type for MATLAB array
mxClassID Enumerated value identifying class of array
mwSize Type for size values
mwIndex Type for index values
mwSignedIndex Signed integer type for size values
mxChar Type for string array
mxLogical Type for logical array
mxComplexity Flag specifying whether array has imaginary components
mxGetEps Value of EPS
mxGetInf Value of infinity
mxGetNaN Value of NaN (Not-a-Number)


Was this topic helpful?