%% Length of Each String in String Array
% Create a string array using the [] operator. str is a 2-by-3 string array that contains six strings.

str = ["Amis","Chekhov","Joyce";"Stein","","Proust"]

%
% Find the length of each string in str. Use strlength, not length, to determine the number of characters in each element of a string array.

L = strlength(str)

% Copyright 2012 The MathWorks, Inc.