strcat - Concatenate strings - MATLAB (original) (raw)
Concatenate strings
Syntax
[newStr = strcat(str1,...,strN)](#d126e19390)
Description
`newStr` = strcat(`str1,...,strN`)
concatenates strings str1,...,strN
.
Note
The operator strcat
is supported only in Stateflow® charts that use C as the action language. In charts that use MATLAB® as the action language, use plus.
Examples
Concatenate strings to form "Hello, world!"
.
str1 = "Hello, "; str2 = "world!"; newStr = strcat(str1,str2);
Tips
Enclose literal strings with single or double quotes.
Version History
Introduced in R2018b