External Interfaces Reference Previous page   Next Page
mxCreateLogicalMatrix

Create two-dimensional, logical mxArray initialized to false

C Syntax

Arguments

m
   The desired number of rows.

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 1 (true) and logical 0 (false) elements. mxCreateLogicalMatrix initializes each element in the array to logical 0.

Call mxDestroyArray when you finish using the mxArray. mxDestroyArray deallocates the mxArray.

See Also

mxCreateLogicalArray, mxCreateSparseLogicalMatrix, mxCreateLogicalScalar


Previous page  mxCreateLogicalArray mxCreateLogicalScalar Next page

© 1994-2005 The MathWorks, Inc.