mxCreateNumericMatrix (Fortran)
2-D numeric matrix
Fortran Syntax
#include "fintrf.h" mwPointer mxCreateNumericMatrix(m, n, classid, ComplexFlag) mwSize m, n integer*4 classid, 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 Fortran types that are equivalent to MATLAB® classes.
MATLAB Class Name | Fortran Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
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
Examples
These Fortran statements create a 4
-by-3
matrix of
REAL*4
elements having no imaginary components:
C Create 4x3 mxArray of REAL*4 mxCreateNumericMatrix(4, 3, + mxClassIDFromClassName('single'), 0)
Version History
Introduced before R2006a
See Also
mxClassIdFromClassName
| mxDestroyArray
| mxCreateNumericArray