MATLAB: Sortrows

sort

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.

Best Answer

sortrows(I,-1)