Skip to Main Content Skip to Search
Product Documentation

mxIsNumeric (C and Fortran) - Determine whether array is numeric

C Syntax

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

Fortran Syntax

integer*4 mxIsNumeric(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the array can contain numeric data. The following class IDs represent storage types for arrays that can contain numeric data:

Logical 0 (false) if the array cannot contain numeric data.

Description

Call mxIsNumeric to determine whether the specified array contains numeric data. If the specified array has a storage type that represents numeric data, mxIsNumeric returns logical 1 (true). Otherwise, mxIsNumeric returns logical 0 (false).

Call mxGetClassID to determine the exact storage type.

Examples

See the following examples in matlabroot/extern/examples/refbook.

See the following examples in matlabroot/extern/examples/eng_mat.

See Also

mxGetClassID

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS