Main Content

upper

Convert a string to uppercase in Requirements Table block

Since R2022b

Description

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

example

Examples

expand all

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

y = upper("Hello, world!")

This example shows a requirement that converts the lowercase characters in the string "Hello, world!" to uppercase 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

|