Main Content

mxIsSingle (C)

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

C Syntax

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

Description

mxIsSingle returns logical 1 (true) if the mxArray stores its real and imaginary data as single-precision, floating-point numbers. Otherwise, it returns logical 0 (false).

In C, calling mxIsSingle is equivalent to calling:

mxGetClassID(pm) == mxSINGLE_CLASS

Input Arguments

expand all

Pointer to an mxArray array, specified as const mxArray*.

Version History

Introduced before R2006a