Skip to content

strvcat

Concatenate strings vertically (pad to equal length).

t = strvcat(s1, s2, ...)

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.

strvcat('foo', 'longer', 'x')
% [foo ; longer; x ]
  • strcat — Concatenate strings horizontally.
  • append — Concatenate strings without trimming.
  • vertcat — Vertical concatenation ([A; B]).