Determine whether scalar array of type mxLogical is true
#include "matrix.h" bool mxIsLogicalScalarTrue(const mxArray *array_ptr);
array_ptr
Pointer to an mxArray
Logical 1
(true
) if the value of the
mxArray
logical, scalar element is true
. Otherwise, it
returns logical 0
(false
).
Use mxIsLogicalScalarTrue
to determine whether the value of a scalar
mxArray
is true or false.