Main Content

lower

Convert string to lowercase

Since R2021b

Description

example

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

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

Version History

Introduced in R2021b