Reverse matrix position
2 views (last 30 days)
Show older comments
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
Accepted Answer
Nirmal Gunaseelan
on 28 Jun 2011
Accessing row values in the reverse order will get you there:
x(end:-1:1,:)
More Answers (1)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!