| MATLAB Application Program Interface Reference | Help Desk |
mxIsSingle
True ifmxArray represents its data as single-precision, floating-point numbers
#include "matrix.h" bool mxIsSingle(const mxArray *array_ptr);array_ptr
true if the array stores its data as single-precision, floating-point numbers; otherwise, returns false.
Use mxIsSingle to determine whether or not the specified array represents its real and imaginary data as single-precision, floating-point numbers.
Calling mxIsDouble is equivalent to calling
mxGetClassID(array_ptr) == mxSINGLE_CLASS
mxIsClass, mxGetClassID