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

    %% Concatenate Strings in String Array
% Concatenate the strings in a string array. The |join| function 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 one.
str = string({'John','Smith';
              'Mary','Jones';
              'Alice','White'})
          
%%
newStr = join(str)