Main Content

ascii2str

Convert array of type uint8 to string

Description

example

dest = 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;
dest = ascii2str(A);

Stateflow chart that uses the ascii2str operator in a state.

Introduced in R2018b