| MATLAB Function Reference | Search  Help Desk |
| fliplr | Examples See Also |
B = fliplr(A)
B = fliplr(A)
returns A with columns flipped in the left-right direction, that is, about a vertical axis.
A =
1 4
2 5
3 6
produces
4 1
5 2
6 3
Array A must be two dimensional.
flipdim Flip array along a specified dimension
flipud Flip matrices up-down
rot90 Rotate matrix 90°