Reverse matrix position

1 次查看(过去 30 天)
Hello,
If i have
x =
1 2 3
4 5 6
7 8 9
10 11 12
I want it to be as
x =
10 11 12
7 8 9
4 5 6
1 2 3
Please help
  1 个评论
developer
developer 2011-6-28
The numbers are not in this order of incrementing , this is just to give the example.

请先登录,再进行评论。

采纳的回答

Nirmal Gunaseelan
Nirmal Gunaseelan 2011-6-28
Accessing row values in the reverse order will get you there:
x(end:-1:1,:)

更多回答(1 个)

Sean de Wolski
Sean de Wolski 2011-6-28
doc flipud
xflipped = flipud(x)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by