| MATLAB Application Program Interface | Search  Help Desk |
| mxIsSingle | See Also |
True if mxArray represents its data as single-precision, floating-point numbers
C Syntax
#include "matrix.h" bool mxIsSingle(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Returns
true if the array stores its data as single-precision, floating-point numbers; otherwise, returns false.
Description
UsemxIsSingle 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
See Also
mxIsClass, mxGetClassID