%% Combine Strings
% Create two strings.

str1 = "Good";
str2 = "Morning";

%
% Combine them using the append function.

str = append(str1,str2)

%
% To add a space between the input strings, specify a space character as another input argument.

str = append(str1,' ',str2)

%
% As an alternative, you can use the plus operator to combine strings.

str = str1 + ' ' + str2

%
% However, the best practice is to use append when you do not know whether the input arguments are strings, character vectors, or cell arrays of character vectors.
% Copyright 2018 The MathWorks, Inc.