ascii2str - Convert array of type uint8 to string - MATLAB (original) (raw)

Convert array of type uint8 to string

expand all in page

Syntax

[str = ascii2str(A)](#d126e11138)

Description

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

example

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

See Also

str2ascii

Topics