C Data Types

C language types and constants

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

mxArrayType for MATLAB array
mxClassIDEnumerated value identifying class of array
mwSizeType for size values
mwIndexType for index values
mwSignedIndexSigned integer type for size values
mxCharType for string array
mxLogicalType for logical array
mxComplexityFlag specifying whether array has imaginary components
mxGetEpsValue of EPS
mxGetInfValue of infinity
mxGetNaNValue of NaN (Not-a-Number)



Using mxArray in MEX files.