Determine whether mxArray represents data as double-precision, floating-point numbers
#include "matrix.h" bool mxIsDouble(const mxArray *pm);
#include "fintrf.h" integer*4 mxIsDouble(pm) mwPointer pm
pm
Pointer to an mxArray
Logical 1
(true
) if the
mxArray
stores its data as double-precision, floating-point
numbers, and logical 0
(false
) otherwise.
Call mxIsDouble
to determine whether the specified
mxArray
represents its real and imaginary data as
double-precision, floating-point numbers.
Older versions of MATLAB® software store all mxArray
data as double-precision,
floating-point numbers. However, starting with MATLAB Version 5 software, MATLAB can store real and imaginary data in various numerical formats.
In C, calling mxIsDouble
is equivalent to calling:
mxGetClassID(pm) == mxDOUBLE_CLASS
In Fortran, calling mxIsDouble
is equivalent to calling:
mxGetClassName(pm) .eq. 'double'
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/mx