iscell - Determine if input is cell array - MATLAB (original) (raw)
Main Content
Determine if input is cell array
Syntax
Description
tf = iscell([A](#mw%5Ffced0e28-444d-4c43-850c-5c0359ce769d))
returns 1
(true
) if A
is a cell array. Otherwise, it returns0
(false
).
Examples
Create a cell array.
A = {1,2,3; 'text',rand(5,10,2),{11; 22; 33}}
A=2×3 cell array {[ 1]} {[ 2]} {[ 3]} {'text'} {5×10×2 double} {3×1 cell}
Determine if A
is a cell array.
Create a numeric array. Test it by using the iscell
function.
B = 2×5
0.1622 0.3112 0.1656 0.2630 0.6892
0.7943 0.5285 0.6020 0.6541 0.7482
Input Arguments
Input array, specified as an array. The input array A
can have any data type.
Extended Capabilities
Version History
Introduced before R2006a