iscell

Return true if variable var is a cell array.

Syntax

  • res = iscell(var)

Input argument

  • var - a variable

Output argument

  • res - a logical: true or false

Description

iscell returns a logical 1 if the argument is a cell array and a logical 0 otherwise.

Examples

A = 3;
res = iscell(A)
B = {'NelSon', 3, true};
res = iscell(B)

See also

class, isstruct.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated