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

36 次查看(过去 30 天)
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.

采纳的回答

James Tursa
James Tursa 2015-3-15
flipud(your_matrix)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by