Main Content

lower

Convert string to lowercase in Requirements Table block

Since R2022b

Description

newStr = lower(str) converts the uppercase characters in the string str to the corresponding lowercase characters. Use this operator in the Requirements Table block.

Examples

expand all

In a Requirements Table block, create a requirement that converts the uppercase characters in the string "Hello, world!" to lowercase characters. The output is "hello, world!".

y = lower("Hello, world!")

This example shows a requirement that converts the uppercase characters in the string "Hello, world!" to lowercase characters.

Input Arguments

expand all

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

Example: "Hello"

Data Types: string

Output Arguments

expand all

Output string, returned as a string scalar.

Limitations

  • This operator does not support the use of Simulink.Bus object fields.

Version History

Introduced in R2022b

See Also

|