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