MATLAB Application Program Interface Reference | Help Desk |
mxCreateFull
Create an unpopulated 2-dimensionalmxArray
integer*4 function mxCreateFull(m, n, ComplexFlag) integer*4 m, n, ComplexFlagm n
The desired number of columns.
ComplexFlag
Specify REAL = 0
if the data has no imaginary components; specify COMPLEX = 1
if the data has some imaginary components.
mxArray
if successful, 0 otherwise.
Use mxCreateFull
to create an unpopulated mxArray
of size m-by-n. mxCreateFull
initializes each element in the pr
array to 0. If you set ComplexFlag to 1, mxCreateFull
also initializes each element in the pi
array to 0.
If you specify REAL = 0
, mxCreateFull
allocates enough memory to hold m-by-n real elements. If you specify COMPLEX = 1
, mxCreateFull
allocates enough memory to hold m-by-n real elements and m-by-n imaginary elements.
Call mxFreeMatrix
when you finish using the mxArray
. mxFreeMatrix
deallocates the mxArray
and its associated real and complex elements.
mxCreateSparse
, mxFreeMatrix