MATLAB Application Program Interface Reference | Help Desk |
mxIsDouble
True ifmxArray
represents its data as double-precision, floating-point numbers
#include "matrix.h" bool mxIsDouble(const mxArray *array_ptr);array_ptr
true
if the mxArray
stores its data as double-precision, floating-point numbers; otherwise, returns false
.
Call mxIsDouble
to determine whether or not the specified mxArray
represents its real and imaginary data as double-precision, floating-point numbers.
Older versions of MATLAB store all mxArray
data as double-precision, floating-point numbers. However, starting with MATLAB 5, MATLAB can store real and imaginary data in a variety of numerical formats.
Calling mxIsDouble
is equivalent to calling
mxGetClassID(array_ptr == mxDOUBLE_CLASS)
mxIsClass
, mxGetClassID