
399Using Compiled Code
data types (int, char*, etc.), it is better to use these generic data types. The generic types are
basically typedef-ed synonyms, dened in matrix.h and tmwtypes.h (which is automatically
#included by matrix.h). Here’s the list for C/C++:
• Mapping of generic MEX data types to native C++ data types
The two enumeration types (mxClassID and mxComplexity) are used in function sig-
nature declarations. When setting or comparing their values, we should use their enu-
meration values: mxDOUBLE_CLASS, mxINT8_CLASS etc. for mxClassID; mxREAL or
mxCOMPLEX for mxComplexity.
To access existing mxArray data, we can use a multitude of p ...