mxCreateNumericMatrix (C)
2-D numeric matrix
C Syntax
#include "matrix.h" mxArray *mxCreateNumericMatrix(mwSize m, mwSize n, mxClassID classid, mxComplexity ComplexFlag);
Description
Use mxCreateNumericMatrix
to create a 2-D mxArray
.
The classid
specifies the numeric data type of the elements in the
array.
This table shows the C classid
values that are equivalent to
MATLAB® classes.
MATLAB Class Name | C |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Call mxDestroyArray
when you finish using the
mxArray
. The mxDestroyArray
function deallocates the
mxArray
and its associated real and imaginary elements.
Input Arguments
Output Arguments
Version History
Introduced before R2006a