| MATLAB Function Reference | ![]() |
Determine if input is logical array
Syntax
Description
tf = islogical(A)
returns logical 1 (true) if A is a logical array and logical 0 (false) otherwise.
Examples
Given the following cell array,
C{1,1} = pi; % double C{1,2} = 1; % double C{1,3} = ispc; % logical C{1,4} = magic(3) % double array C = [3.1416] [1] [1] [3x3 double]
islogical shows that only C{1,3} is a logical array.
See Also
logical, isnumeric, ischar, isreal, logical operators (elementwise and short-circuit), isa, is*
| isletter | ismember | ![]() |
© 1994-2005 The MathWorks, Inc.