| MATLAB® | ![]() |
#include "matrix.h" bool mxIsLogicalScalarTrue(const mxArray *array_ptr);
Pointer to an mxArray
Logical 1 (true) if the value of the mxArray's logical, scalar element is true, and logical 0 (false) otherwise.
Use mxIsLogicalScalarTrue to determine whether the value of a scalar mxArray is true or false. For additional information on the use of logical variables in MATLAB software, type help logical at the MATLAB prompt.
mxIsLogicalScalarTrue(pa) is equivalent to:
mxIsLogical(pa) && mxGetNumberOfElements(pa) == 1 && mxGetLogicals(pa)[0] == true
mxIsLogical, mxIsLogicalScalar, mxGetLogicals, mxGetScalar
![]() | mxIsLogicalScalar (C) | mxIsNaN (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |