Hi,
A=[1 1 1; 3 2 1; 1 3 1]
is there a way in matlab to sort rows of a matrix based on ascending order for the first column and then descending order for the second column, so the final matrix will look like this:
A=[1 3 1; 1 1 1; 3 2 1]
Best Answer