matrix transformation to make the values of second row to be lower to higher
1 view (last 30 days)
I have a matrix D=[p1,p1,p3;d1,d2,d3]. Now I want change the column orderings such that the second row of D is ordering from lower to higher value. For example, D=[0.3,0.5,0.2;0.3,-0.1,0.7]. What I want to is the new matrix to be [0.5,0.3,0.2;-0.1,0.3,0.7]. Do you know an efficient way to realize this?