%% Concatenate Two String Arrays
% Starting in R2017a, you can create string arrays using double quotes. Concatenate them with the strcat function.

str1 = ["John ","Mary "];
str2 = ["Smith","Jones"];
str = strcat(str1,str2)

%
% Concatenate a character vector onto each element of the string array.

str = strcat(str,', M.D.')

% Copyright 2012 The MathWorks, Inc.