| MATLAB Application Program Interface | Search  Help Desk |
| mxSetLogical | Examples See Also |
C Syntax
#include "matrix.h" void mxSetLogical(mxArray *array_ptr);
Arguments
array_ptrmxArray having a numeric class.
Description
UsemxSetLogical 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. For additional information on the use of logical variables in MATLAB, type help logical at the MATLAB prompt.
Example
Seemxislogical.c in the mx subdirectory of the examples directory.
See Also
mxClearLogical, mxIsLogical