| MATLAB Function Reference | ![]() |
Syntax
B = fliplr(A)
Description
B = fliplr(A)
returns A with columns flipped in the left-right direction, that is, about a vertical axis.
If A is a row vector, then fliplr(A) returns a vector of the same length with the order of its elements reversed. If A is a column vector, then fliplr(A) simply returns A.
Examples
A =
1 4
2 5
3 6
4 1
5 2
6 3
A =
1 3 5 7 9
9 7 5 3 1
Limitations
The array being operated on cannot have more than two dimensions. This limitation exists because the axis upon which to flip a multidimensional array would be undefined.
See Also
| flipdim | flipud | ![]() |