Reverse matrix position

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 commentaire

developer
developer le 28 Juin 2011
The numbers are not in this order of incrementing , this is just to give the example.

Connectez-vous pour commenter.

 Réponse acceptée

Nirmal Gunaseelan
Nirmal Gunaseelan le 28 Juin 2011

0 votes

Accessing row values in the reverse order will get you there:
x(end:-1:1,:)

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 28 Juin 2011

0 votes

doc flipud
xflipped = flipud(x)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by