tostring
将值转换为字符串
描述
将数值、布尔或枚举数据 str = tostring(X)X 转换为字符串。
注意
仅在使用 C 语言作为动作语言的 Stateflow® 图中支持运算符 tostring。在使用 MATLAB® 作为动作语言的图中,请使用 string。
示例
版本历史记录
在 R2018b 中推出
将值转换为字符串
将数值、布尔或枚举数据 str = tostring(X)X 转换为字符串。
注意
仅在使用 C 语言作为动作语言的 Stateflow® 图中支持运算符 tostring。在使用 MATLAB® 作为动作语言的图中,请使用 string。
在 R2018b 中推出