Skip to Main Content Skip to Search
Product Documentation

iscellstr - Determine whether input is cell array of strings

Syntax

tf = iscellstr(A)

Description

tf = iscellstr(A) returns logical 1 (true) if A is a cell array of strings (or an empty cell array), and logical 0 (false) otherwise. A cell array of strings is a cell array where every element is a character array.

Examples

A{1,1} = 'Thomas Lee';
A{1,2} = 'Marketing';
A{2,1} = 'Allison Jones';
A{2,2} = 'Development';

iscellstr(A)

ans =

     1

See Also

cellstr | char | is* | isa | iscell | isstrprop | isstruct | strings

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS