Order all the rows based on one row.
Ältere Kommentare anzeigen
Hi!
I´ve searching for an answer but I didn´t find any, and before programming a super inefficient function I just wanted to be sure that there weren´t any prebuilt function to do this. So the question is:
How do you sort all the rows of a matrix based on one specific row. For example, based on the first row:
LENGTH =
723 1081 860
1 2 3
Sorted:
LENGTH =
723 860 1081
1 3 2
Thank you in advance!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!