External Interfaces Reference |
Determine if mxArray
is numeric
C Syntax
Arguments
array_ptr
Pointer to an mxArray
.
Returns
Logical 1
(true
) if the array's storage type is:
mxDOUBLE_CLASS
mxSINGLE_CLASS
mxINT8_CLASS
mxUINT8_CLASS
mxINT16_CLASS
mxUINT16_CLASS
mxINT32_CLASS
mxUINT32_CLASS
mxINT64_CLASS
mxUINT64_CLASS
Logical 0
(false
) if the array's storage type is:
mxCELL_CLASS
mxCHAR_CLASS
mxFUNCTION_CLASS
mxLOGICAL_CLASS
mxSTRUCT_CLASS
mxUNKNOWN_CLASS
Description
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 logical 0
(false
). Otherwise, mxIsNumeric
returns logical 1
(true
).
Call mxGetClassID
to determine the exact storage type.
Examples
See phonebook.c
in the refbook
subdirectory of the examples
directory.
See Also
mxIsNaN | mxIsSingle |
© 1994-2005 The MathWorks, Inc.