mxIsScalar (C)
Determine whether array is scalar array
C Syntax
#include "matrix.h" bool mxIsScalar(const mxArray *array_ptr);
Arguments
array_ptrPointer to an
mxArray
Returns
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.
Example
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename is:
Version History
Introduced in R2015a