Main Content

lower

Convert string to lowercase in Stateflow chart

Since R2021b

Description

newStr = lower(str) converts the uppercase characters in the string str to the corresponding lowercase characters.

example

Note

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

Examples

expand all

Convert the uppercase characters and return the string "hello, world!"

str = "Hello, world!";
newStr = lower(str);

Stateflow chart that uses the lower operator in a state.

Input Arguments

expand all

Input string, specified as a string scalar. Enclose literal strings with double quotes.

Example: "Hello"

Limitations

  • This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals.

Version History

Introduced in R2021b