mxIsNumeric (C) - Determine whether mxArray is numeric - MATLAB (original) (raw)

Main Content

Determine whether mxArray is numeric

C Syntax

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

Description

Call mxIsNumeric to determine whether the specified array contains numeric data. If the array has a storage type that represents numeric data, thenmxIsNumeric returns logical 1 (true). Call mxGetClassID to determine the storage type. These class IDs represent storage types for arrays that can contain numeric data:

Otherwise, mxIsNumeric returns logical 0 (false).

Input Arguments

expand all

pm — MATLAB array

const mxArray*

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

Examples

See these examples in_`matlabroot`_/extern/examples/refbook:

Version History

Introduced before R2006a