strcat
Concatenate strings horizontally.
Syntax
Section titled “Syntax”t = strcat(s1, s2, ...)Description
Section titled “Description”Concatenates string inputs left to right. Trailing whitespace is stripped from each input before concatenation (matching MATLAB’s classic strcat behavior). For string concatenation that preserves trailing whitespace, use [s1 s2 ...] syntax or append.
Examples
Section titled “Examples”strcat('hello', ' world') % 'helloworld' (trailing spaces stripped)['hello' ' world'] % 'hello world' (preserves spaces)