Convert string to array of type
returns array of type
A = str2ascii(
uint8 containing ASCII values for the first
n characters in
n is a positive integer. If
str has fewer
n characters, the remaining elements of
are set to
Use of variables or expressions for
n is not supported.
str2ascii is supported only in Stateflow® charts that use C as the action language.
A = str2ascii("Hello",5);
Enclose literal strings with single or double quotes.