| External Interfaces/API Reference | ![]() |
Fortran Syntax
Arguments
Returns
1 if the mxArray's logical flag is on, and 0 otherwise. If an mxArray does not hold numeric data (for instance, if pm points to a structure mxArray or a cell mxArray), then mxIsLogical automatically returns 0.
Description
Use mxIsLogical to determine whether MATLAB treats the data in the mxArray as Boolean (logical) or numerical (not logical).
If an mxArray is logical, then MATLAB treats all zeros as meaning false and all nonzero values as meaning true. For additional information on the use of logical variables in MATLAB, type help logical at the MATLAB prompt.
See Also
mxIsClass, mxSetLogical (Obsolete), logical
| mxIsInt32 | mxIsNaN | ![]() |