sortrows

3 views (last 30 days)
Mohammad Golam Kibria
Mohammad Golam Kibria on 26 Jun 2011
Hi,I have a matrix. I=
1 4
5 6
2 3
I want the output sorting in the following
5 6
2 3
1 4
Thanks.

Accepted Answer

Matt Fig
Matt Fig on 26 Jun 2011
sortrows(I,-1)

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!