Contents Previous Next Subchapters

Flipping the Row Order of a Matrix
Syntax flipud(matrix)
See Also fliplr , sort , reverse

Description
Returns a copy of matrix with the rows in reverse order.

Example
If you enter
     x = { ...
          [ 1 , 2 , 3 ] , ...
          [ 4 , 5 , 6 ]  ...
     }
     flipud(x)
O-Matrix will respond
     {
     [ 4 , 5 , 6 ]
     [ 1 , 2 , 3 ]
     }

Reference
This function has the same specification as reverse but reverse is faster because it is an intrinsic function.