Using the C Math Library    

MATLAB Array C Data Type

The MATLAB C Math Library uses one data type, mxArray, to represent all types of MATLAB arrays. The mxArray data type is defined by the MATLAB Application Program Interface (API). Each instance of this data type contains information that identifies the type of array and the size and shape of the array.

The mxArray data type is an opaque data type. The MATLAB API includes routines to create arrays and access them. These routines are identified by the prefix mx. For a complete list of these routines, see Chapter 9.

As a convenience, the MATLAB C Math Library includes routines to create certain types of commonly used arrays. The sections in this chapter that describe the various types of arrays detail these routines. These routines, like all the library routines, are identified by the prefix mlf. You can use a mix of mlf and mx routines to create and manipulate arrays.


 Supported MATLAB Array Types Numeric Arrays