How to use fliplr() In MATLAB
The fliplr() function is used to flip the specified string from left to right.
Syntax: fliplr(String)
Parameters: This function accepts a parameter.
String: It is the specified string whose characters are going to be flipped from left to right.
Example:
Matlab
% MATLAB code for reverse % string using fliplr() % Initializing a string string = 'w3wiki' ; % Calling the fliplr() function % over the above string to % flip its characters from left % to right Reversed_String = fliplr(string) |
Output:
How to reverse a string in MATLAB?
In this article, we are going to discuss the “Reversing of a string” in MATLAB which can be done in multiple approaches that are illustrated below:
Contact Us