Main Content
strvcat
(Not recommended) Concatenate strings vertically
strvcat
is not recommended. Use char
instead. Unlike strvcat
, the char
function does not ignore empty character vectors.
Description
S = strvcat(
returns a character
array containing the text arrays str1,...,strN
)str1,...,strN
as rows. Spaces are
appended to each input argument as necessary so that the rows of S
have
the same number of characters. Empty arguments are ignored.
Examples
Input Arguments
Tips
If each text parameter, str1,...,strN
, is itself a character array,
strvcat
appends them vertically to create arbitrarily large character
arrays.
Version History
Introduced before R2006a