| External Interfaces/API Reference | ![]() |
C Syntax
#include "matrix.h" bool mxIsNumeric(const mxArray *array_ptr);
Arguments
array_ptr
Pointer to an mxArray.
Returns
true if the array's storage type is:
mxDOUBLE_CLASSmxSPARSE_CLASSmxSINGLE_CLASSmxINT8_CLASSmxUINT8_CLASSmxINT16_CLASSmxUINT16_CLASSmxINT32_CLASSmxUINT32_CLASSfalse if the array's storage type is:
mxCELL_CLASSmxCHAR_CLASSmxOBJECT_CLASSmxSTRUCT_CLASSmxUNKNOWN_CLASSDescription
Call mxIsNumeric to determine if the specified array contains numeric data. If the specified array is a cell, string, or a structure, then mxIsNumeric returns false. Otherwise, mxIsNumeric returns true.
Call mxGetClassID to determine the exact storage type.
Example
See phonebook.c in the refbook subdirectory of the examples directory.
See Also
| mxIsNaN | mxIsSingle | ![]() |