Reverse matrix position

조회 수: 3 (최근 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 CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by