%% Combine String Array Along Specified Dimension
% Create a string array. Starting in R2017a, you can create strings using double quotes.

str = ["Carlos","Sada";
       "Ella","Olsen";
       "Diana","Lee"]

%
% Combine the strings in str along the first dimension. By default, the join function combines strings along the last dimension with a size that does not equal 1. To combine the strings along the first dimension, specify it as an additional input argument.

newStr = join(str,1)

% Copyright 2012 The MathWorks, Inc.