| MATLAB® | ![]() |
#include "matrix.h" bool mxIsLogical(const mxArray *pm);
integer*4 mxIsLogical(pm) mwPointer pm
Pointer to an mxArray
Logical 1 (true) if pm points to a logical mxArray, and logical 0 (false) otherwise.
Use mxIsLogical to determine whether MATLAB software treats the data in the mxArray as Boolean (logical). If an mxArray is logical, 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 software, type help logical at the MATLAB prompt.
See mxislogical.c in the mx subdirectory of the examples directory.
![]() | mxIsInt8 (C and Fortran) | mxIsLogicalScalar (C) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |