iscell

Tests if a value is a cell array.

Syntax

R = iscell(A)

Inputs

A
The input to be tested to determine if it is a cell.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
R is a logical value indicating whether A is a cell array.

Examples

Scalar example:
R = iscell(1)
R = 0
Simple cell example:
R = iscell({1})
R = 1
Cell array example:
R = iscell({1, 'hello', [1,2,3]})
R = 1
Cell example:
R = iscell({[1,2;3,4]})
R = 1