Main Content

lower

在 Stateflow 图中将字符串转换为小写

自 R2021b 起

描述

示例

newStr = lower(str) 将字符串 str 中的大写字符转换为对应的小写字符。

注意

使用 C 语言作为动作语言的 Stateflow® 图不支持 lower 运算符。

示例

全部展开

转换大写字符并返回字符串 "hello, world!"

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

Stateflow chart that uses the lower operator in a state.

输入参数

全部展开

输入字符串,指定为字符串标量。用双引号将文字字符串引起来。

示例: "Hello"

限制

版本历史记录

在 R2021b 中推出