reverse
Reverse the order of characters in a string.
Syntax
Section titled “Syntax”t = reverse(str)Description
Section titled “Description”Returns str with its characters in reverse order. Applied elementwise to character arrays — each row of a 2D char array is reversed independently.
Example
Section titled “Example”reverse('hello') % 'olleh'