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

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

%
% Combine the strings using the join function. join concatenates the strings from str and places a space character between them. join concatenates along the second dimension, because it is the last dimension with a size that does not equal 1.

newStr = join(str)

% Copyright 2012 The MathWorks, Inc.