Determine whether array is scalar array
#include "matrix.h" bool mxIsScalar(const mxArray *array_ptr);
array_ptr
Pointer to an mxArray
Logical 1
(true
) if the
mxArray
has 1
-by-1
dimensions. Otherwise, it returns logical 0
(false
).
Note
Only use mxIsScalar
for mxArray
classes with
IDs documented by mxClassID
.