MATLAB Function Reference Previous page   Next Page

Determine if input is numeric array



tf = isnumeric(A) returns logical 1 (true) if A is a numeric array and logical 0 (false) otherwise. For example, sparse arrays and double-precision arrays are numeric, while strings, cell arrays, and structure arrays and logicals are not.


Given the following cell array,

isnumeric shows that all but C{1,2} and C{1,4} are numeric arrays.

See Also

isstrprop, isnan, isreal, isprime, isfinite, isinf, isa, is*

Previous page  isnan isobject Next page

© 1994-2005 The MathWorks, Inc.