I have the matrix as follows
a =
1 3
2 5
3 2
4 8
5 9
I want to sort the second column in the a
matrix. I want the corresponding rows of column one to be printed as follows :
a =
3 2
1 3
2 5
4 8
5 9
I tried sort(a)
, but it is sorting only the second column of matrix a
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…