Determine whether array is of type mxLogical
#include "matrix.h" bool mxIsLogical(const mxArray *pm);
#include "fintrf.h" integer*4 mxIsLogical(pm) mwPointer pm
pm
Pointer to an mxArray
Logical 1
(true
) if pm
points
to a logical mxArray
. Otherwise, it returns logical
0
(false
).
Use mxIsLogical
to determine whether MATLAB® software treats the data in the mxArray
as Boolean
(logical). If an mxArray
is logical, then MATLAB treats all zeros as meaning false
and all nonzero
values as meaning true
.