iscell
Tests whether a value is a cell array.
Category: Language Fundamentals > Data Types
Syntax
tf = iscell(A)
Returns true for a cell array.
Description
The test is true for any cell array, including an empty one ({}). Use iscellstr to check that every cell holds a character vector.
Input arguments
A- Any value.
Output arguments
tf- Logical scalar.
Example
Cell or not
iscell({1, 'a'})
iscell({})
iscell([1 2 3])
Output
ans = logical
1
ans = logical
1
ans = logical
0