res = strcat(s1, s2, ..., sN)
| Parameter | Description |
|---|---|
| s1, s2, ..., sN | a string, string array or cell of strings. |
| Parameter | Description |
|---|---|
| res | a string, string array or cell of strings. |
strcat concatenate strings horizontally.
If all inputs are character arrays, thenres is a character array.
If any input is a string array, then theres is a string array.
If any input is a cell array, and none are string arrays, thenres is a cell array of character vectors.
For cell and string array inputs,strcat does not remove trailing white space.
For character array inputs,strcat removes trailing ASCII white-space characters.
strcat("Nelson", 'nelSon')
A = {'abcde','fghi'};
B = {'jkl','mn'};
C = strcat(A, B)
| Version | Description |
|---|---|
| 1.0.0 | initial version |