Determine whether mxArray represents data as single-precision, floating-point numbers
#include "matrix.h" bool mxIsSingle(const mxArray *pm);
mxIsSingle
returns logical 1
(true
) if the mxArray
stores its real and
imaginary data as single-precision, floating-point numbers. Otherwise, it returns
logical 0
(false
).
In C, calling mxIsSingle
is equivalent to calling:
mxGetClassID(pm) == mxSINGLE_CLASS