ascii2str - Convert array of type uint8 to string - MATLAB (original) (raw)
Convert array of type uint8
to string
Syntax
[str = ascii2str(A)](#d126e11138)
Description
`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
Return string "Hi!"
.
A[0] = 72; A[1] = 105; A[2] = 33; str = ascii2str(A);
Version History
Introduced in R2018b