Determine whether mxArray represents data as double-precision, floating-point numbers
#include "fintrf.h" integer*4 mxIsDouble(pm) mwPointer pm
mxIsDouble
returns 1
if the
mxArray
stores its real and imaginary data as double-precision,
floating-point numbers. Otherwise, it returns 0
.
Older versions of MATLAB® 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 other numerical formats.
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