Reverse matrix position

2 ビュー (過去 30 日間)
developer
developer 2011 年 6 月 28 日
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 件のコメント
developer
developer 2011 年 6 月 28 日
thanks nirmal :)

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2011 年 6 月 28 日
doc flipud
xflipped = flipud(x)
  1 件のコメント
developer
developer 2011 年 6 月 28 日
thanks :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpline Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by