MATLAB Application Program Interface Reference | Help Desk |
mxSetLogical
Set the logical flag
#include "matrix.h" void mxSetLogical(mxArray *array_ptr);array_ptr
Pointer to an mxArray
having a numeric class.
mxSetLogical
to turn on an mxArray's
logical flag. This flag tells MATLAB that the array's data is to be treated as Boolean. If the logical flag is on, then MATLAB treats a 0 value as meaning false
and a nonzero value as meaning true
.
See mxSetLogical.c
in the mx
subdirectory of the examples
directory.
mxClearLogical
, mxIsLogical