string.vertcat
string: C = vertcat (A, B, …)
Vertical concatenation of string arrays.
C = vertcat (A, B, …) is the equivalent of
the syntax C = [A; B; …] and vertically
concatenates the string arrays A, B, …. All input
arrays must have the same size except along the first dimension. Any of
the input arrays may also be character matrixes, cell arrays of character
vectors, numeric arrays, or logical arrays of compatible size.
Source Code: string
String arrays concatenate like ordinary arrays; [a; b] stacks them into a single column.
a = string ({'apple'; 'banana'})
a =
2x1 string array
"apple"
"banana"
b = string ({'cherry'; 'date'})
b =
2x1 string array
"cherry"
"date"
[a; b]
ans =
4x1 string array
"apple"
"banana"
"cherry"
"date"