Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Structural Operations on Expressions >

Reverse

Updated In 6 Graphic
Reverse[expr]
reverses the order of the elements in expr.
Reverse[expr, n]
reverses elements at level n in expr.
Reverse[expr, {n1, n2, ...}]
reverses elements at levels n1, n2, ... in expr.
  • Reverse works on SparseArray objects, reversing the elements in the corresponding ordinary array.
  • For a matrix m, Reverse[m] reverses the order of the rows, and Reverse[m, 2] reverses the order of the columns.
New in 1 | Last modified in 6
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team