strvcat
Concatenate strings vertically (pad to equal length).
Syntax
Section titled “Syntax”t = strvcat(s1, s2, ...)Description
Section titled “Description”Returns a character matrix where each input becomes one row. Shorter strings are right-padded with spaces to match the longest input. Empty strings are skipped.
Examples
Section titled “Examples”strvcat('foo', 'longer', 'x')% [foo ; longer; x ]