Main Content

lower

Convert string to lowercase

Description

example

newStr = lower(str) converts all uppercase characters in str to the corresponding lowercase characters and leaves all other characters unchanged.

Note

Only Stateflow® charts that use MATLAB® as the action language support the lower operator.

Examples

expand all

Convert the uppercase characters in the text Hello, world! to lowercase characters.

h = "Hello, world!"
x = lower(h)

Stateflow chart that uses the lower operator in a state.

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

Limitations

Introduced in R2021b