Main Content
mxIsNumeric (C)
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, then
mxIsNumeric
returns logical 1
(true
). Call mxGetClassID
to determine the storage type.
These class IDs represent storage types for arrays that can contain numeric data:
mxDOUBLE_CLASS
mxSINGLE_CLASS
mxINT8_CLASS
mxUINT8_CLASS
mxINT16_CLASS
mxUINT16_CLASS
mxINT32_CLASS
mxUINT32_CLASS
mxINT64_CLASS
mxUINT64_CLASS
Otherwise, mxIsNumeric
returns logical 0
(false
).
Input Arguments
Examples
See these examples in
:matlabroot
/extern/examples/refbook
Version History
Introduced before R2006a