| MATLAB Application Program Interface | Search  Help Desk |
| mxIsNumeric | Examples See Also |
C Syntax
#include "matrix.h" bool mxIsNumeric(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Returns
true if the array's storage type is:
mxDOUBLE_CLASS
mxSPARSE_CLASS
mxSINGLE_CLASS
mxINT8_CLASS
mxUINT8_CLASS
mxINT16_CLASS
mxUINT16_CLASS
mxINT32_CLASS
mxUINT32_CLASS
false if the array's storage type is:
mxCELL_CLASS
mxCHAR_CLASS
mxOBJECT_CLASS
mxSTRUCT_CLASS
mxUNKNOWN_CLASS
Description
CallmxIsNumeric 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
Seephonebook.c in the refbook subdirectory of the examples directory.
See Also
mxGetClassID