www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ConcatenateStringsExample.m

    %% Concatenate Strings
% Create two 1-by-3 string arrays, then concatenate similarly located
% strings in the arrays.
s1 = string({'Red' 'Blue' 'Green'})

%%
s2 = string({'Truck' 'Sky' 'Tree'})

%%
s = s1 + s2