Main Content

ascii2str

Convert array of type uint8 to string

Description

example

str = ascii2str(A) converts ASCII values in array A of type uint8 to a string.

Note

The operator ascii2str is supported only in Stateflow® charts that use C as the action language.

Examples

expand all

Return string "Hi!".

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

Stateflow chart that uses the ascii2str operator in a state.

Version History

Introduced in R2018b