MATLAB Functions | Help Desk |
fliplr
Flip matrices left-right
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 6produces
4 1 5 2 6 3Array
A
must be two dimensional.
flipdim
Flip array along a specified dimension
flipud
Flip matrices up-down
rot90
Rotate matrix 90°