External Interfaces/API Reference |
Create two-dimensional, logical mxArray
initialized to false
C Syntax
Arguments
n
The desired number of columns.
Returns
A pointer to the created mxArray
, if successful. If unsuccessful in a stand-alone (nonMEX-file) application, mxCreateLogicalMatrix
returns NULL
. If unsuccessful in a MEX-file, the MEX-file terminates and control returns to the MATLAB prompt. mxCreateLogicalMatrix
is unsuccessful when there is not enough free heap space to create the mxArray
.
Description
Use mxCreateLogicalMatrix
to create an m
-by-n
mxArray
of logical (true
and false
) elements. mxCreateLogicalMatrix
initializes each element in the array to false
.
Call mxDestroyArray
when you finish using the mxArray
. mxDestroyArray
deallocates the mxArray
.
See Also
mxCreateLogicalArray
, mxCreateSparseLogicalMatrix
, mxCreateLogicalScalar
mxCreateLogicalArray | mxCreateLogicalScalar |