Reverse order of characters in strings
reverses the order of the characters in the string
newStr = reverse(
reverse operator is not supported in Stateflow® charts that use C as the action language.
Reverse the order of characters and return the string
str = "Hello, world!"; newStr = reverse(str);
str — Input string
Input string, specified as a string scalar. Enclose literal strings with double quotes.
This operator does not support the use of Stateflow structure fields. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.
Introduced in R2021b