Programming Previous page   Next Page

Data Types Used in the Matrix

These functions test elements of a matrix for a specific data type.

Function
Description
isa
Detect if input is of a given data type.
iscell
Determine if input is a cell array.
iscellstr
Determine if input is a cell array of strings.
ischar
Determine if input is a character array.
isfloat
Determine if input is a floating-point array.
isinteger
Determine if input is an integer array.
islogical
Determine if input is a logical array.
isnumeric
Determine if input is a numeric array.
isreal
Determine if input is an array of real numbers.
isstruct
Determine if input is a MATLAB structure array.

Example Using isnumeric and isreal

Pick out the real numeric elements from this vector:

The values returned are


Previous page  Getting Information About a Matrix Data Structures Used in the Matrix Next page

© 1994-2005 The MathWorks, Inc.