Main Content

mxIsDouble (Fortran)

Determine whether mxArray represents data as double-precision, floating-point numbers

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsDouble(pm)
mwPointer pm

Description

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'

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.

Examples

See these examples in matlabroot/extern/examples/refbook:

See these examples in matlabroot/extern/examples/mx:

Version History

Introduced before R2006a