Determine whether mxArray is of type mxLogical
#include "matrix.h" bool mxIsLogical(const mxArray *pm);
mxIsLogical
returns logical 1
(true
) if the data in the mxArray
is Boolean
(logical). Otherwise, it returns logical 0
(false
). If
an mxArray
is logical, then MATLAB® treats all zeros as meaning false
and all nonzero values as
meaning true
.