2-D, sparse, logical array
#include "matrix.h" mxArray *mxCreateSparseLogicalMatrix(mwSize m, mwSize n, mwSize nzmax);
Number of rows
Number of columns
Number of elements that
allocate to hold the data. Set the value of
be greater than or equal to the number of nonzero elements you plan
to put into the
mxArray, but make sure that
less than or equal to
greater than or equal to 1.
Pointer to the created
if successful. If unsuccessful in a standalone (non-MEX file) application,
NULL in C (
0 in Fortran).
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
mxCreateSparseLogicalMatrix to create
each element in the array to logical
mxDestroyArray when you finish using
mxArray and its elements.