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

32 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

James Tursa
James Tursa el 15 de Mzo. de 2015
flipud(your_matrix)

Más respuestas (0)

Categorías

Más información sobre Elementary Math en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by