Skip to content

iscellstr

Test whether the input is a cell array of strings.

TF = iscellstr(A)

Returns true if A is a cell array and every cell holds a character-array (string) value. Returns false for empty cells, non-string cells, or non-cell inputs.

iscellstr({'foo', 'bar'}) % 1
iscellstr({'foo', 42}) % 0
  • iscell — Test whether the input is a cell array.
  • cellstr — Convert a character array to a cell array of strings.