| MATLAB® | ![]() |
#include "matrix.h" mxArray *mxCreateLogicalMatrix(mwSize m, mwSize n);
The desired number of rows
The desired number of columns
A pointer to the created mxArray, if successful. If unsuccessful in a stand alone (non-MEX-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.
Use mxCreateLogicalMatrix to create an m-by-n mxArray of mxLogical elements. mxCreateLogicalMatrix initializes each element in the array to logical 0.
Call mxDestroyArray when you finish using the mxArray. mxDestroyArray deallocates the mxArray.
mxCreateLogicalArray, mxCreateSparseLogicalMatrix, mxCreateLogicalScalar
![]() | mxCreateLogicalArray (C) | mxCreateLogicalScalar (C) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |