Convert string to array of type uint8
returns array of type A
= str2ascii(str
,n)uint8
containing ASCII values for the first
n
characters in str
, where
n
is a positive integer.
Use of variables or expressions for n
is not supported.
Note
The operator str2ascii
is supported only in Stateflow® charts that use C as the action language.
Enclose literal strings with single or double quotes.