Contents Previous Next Subchapters

Reversing Row Order Of A Matrix
Syntax reverse(matrix)
See Also sort

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

Example
You can use reverse to sort a vector in descending order. If you enter
     v = {4, 1, 5}
     s = sort(v)
     reverse(s)
O-Matrix will respond
     {
     5
     4
     1
     }