Simple case:
>> x = [ 10 8 ; 4 3 ]x = 10 8 4 3>> [y,i] = sort(x,2 )y = 8 10 3 4i = 2 1 2 1>> x(i)ans = 4 10 4 10
We see x(i) is not equiv. to y. Can I use x & i to derive y … ?
Best Answer