Main Content
append
Combine strings
Description
str = append(
combines the text
from str1,...,strN
)str1,...,strN
. Each input argument can be a string array, a
character vector, or a cell array of character vectors.
If any input is a string array, then the output is a string array.
If any input is a cell array, and none are string arrays, then the output is a cell array of character vectors.
If all inputs are character vectors, then the output is a character vector.
Unlike the strcat
function, append
preserves
trailing whitespace characters from input arguments of all data types.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2019a