mxCreateLogicalMatrix (C)
2-D logical array
C Syntax
#include "matrix.h" mxArray *mxCreateLogicalMatrix(mwSize m, mwSize n);
Arguments
mNumber of rows
nNumber of columns
Returns
Pointer to the created mxArray. If unsuccessful in a standalone
(non-MEX file) application, returns NULL. If unsuccessful in a MEX
file, the MEX file terminates and returns control to the MATLAB® prompt. The function 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 mxLogical elements.
mxCreateLogicalMatrix initializes each element in the array to
logical 0.
Call mxDestroyArray when you finish using the
mxArray. mxDestroyArray deallocates the
mxArray.
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename is:
Version History
Introduced before R2006a