Main Content

ascii2str

将类型为 uint8 的数组转换为字符串

描述

示例

str = ascii2str(A) 将类型为 uint8 的数组 A 中的 ASCII 值转换为字符串。

注意

仅在使用 C 语言作为动作语言的 Stateflow® 图中支持运算符 ascii2str

示例

全部展开

返回字符串 "Hi!"

A[0] = 72;
A[1] = 105;
A[2] = 33;
str = ascii2str(A);

Stateflow chart that uses the ascii2str operator in a state.

版本历史记录

在 R2018b 中推出