How to rearrange matrix elements by making last row as first row, etc?

48 views (last 30 days)
Hi all
I have a 199x144 matrix but I want to switch the rows by starting from last row first. i.e.making last row as first row, row 198 as row 2, row 197 as row 3, and so on... Is there an easy way to do this?? (I could only think of looping by element but that will take so much time especially for bigger matrices).
Any help is appreciated! Thank you.

Accepted Answer

James Tursa
James Tursa on 15 Mar 2015
flipud(your_matrix)

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!