Main Content

plus, +

Append strings

Description

example

C = plus(A,B) appends two string arrays.

Note

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

Examples

expand all

Use plus to append two strings.

h = "Hello,"
w = " world!"
x = plus(h,w)

Stateflow chart that uses the plus operator in a state.

Results from stateflow chart that uses the plus operator in a state.

You can also use + to append two strings.

Results from stateflow chart that uses the plus operator in a state.

Limitations

Introduced in R2021b