how to sort only first column in matlab
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
abdul wahab aziz
il 27 Ago 2016
Risposto: Star Strider
il 27 Ago 2016
X=0.5 1.0;0.1 2;2.5 4 output must be like 0.1 2;0.5 1.0;2.5 4
0 Commenti
Risposta accettata
Star Strider
il 27 Ago 2016
Use the sortrows funciton:
X = [0.5 1.0;0.1 2;2.5 4];
Output = sortrows(X, 1)
Output =
0.1 2
0.5 1
2.5 4
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!