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

18 vues (au cours des 30 derniers jours)
B.kun
B.kun le 15 Mar 2015
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.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Elementary Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by