Determine whether scalar array is of type mxLogical
#include "matrix.h" bool mxIsLogicalScalar(const mxArray *array_ptr);
array_ptr
Pointer to an mxArray
Logical 1
(true
) if the
mxArray
is of class mxLogical
and has
1
-by-1
dimensions. Otherwise, it returns
logical 0
(false
).
Use mxIsLogicalScalar
to determine whether MATLAB® treats the scalar data in the mxArray
as logical or
numerical.