Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
For a given matrix, I want to sort the first column in descending order WITH the corresponded component on the second column. I can't use the "sort" function since it changes the order of one column's elements only.
Could you please help me with this issue?
Thank you.
Solved! Go to Solution.
You should be using the csort(M,c) function, where you can sort matrix M on the values of column c.
Success!
Luc
You should be using the csort(M,c) function, where you can sort matrix M on the values of column c.
Success!
Luc
Thank you.