mxIsSingle (C and Fortran)

Determine whether array represents data as single-precision, floating-point numbers

C Syntax

#include "matrix.h"
bool mxIsSingle(const mxArray *pm);

Fortran Syntax

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

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the array stores its data as single-precision, floating-point numbers, and logical 0 (false) otherwise.

Description

Use mxIsSingle to determine whether the specified array represents its real and imaginary data as single-precision, floating-point numbers.

In C, calling mxIsSingle is equivalent to calling:

mxGetClassID(pm) == mxSINGLE_CLASS

In Fortran, calling mxIsSingle is equivalent to calling:

mxGetClassName(pm) .eq. 'single'

Introduced before R2006a