Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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

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

Was this topic helpful?