strcat

Concatenate strings

Description

example

dest = strcat(s1,...,sN) concatenates strings s1,...,sN.

Note

The operator strcat is supported only in Stateflow® charts that use C as the action language.

Examples

expand all

Concatenate strings to form "Stateflow".

s1 = "State";
s2 = "flow";
dest = strcat(s1,s2);

Stateflow chart that uses the strcat operator in a state.

Tips

Enclose literal strings with single or double quotes.

Introduced in R2018b