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.

Examples

expand all

Return string "Hi!".

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

Tips

  • Use in Stateflow® charts that use C as the action language.

Introduced in R2018b