strcat

Concatenate strings

Description

example

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

Examples

expand all

Concatenate strings to form "Stateflow".

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

Tips

  • Use in Stateflow® charts that use C as the action language.

  • Enclose literal strings with single or double quotes.

Introduced in R2018b