sorting matrix

1 visualizzazione (ultimi 30 giorni)
Mohammad Golam Kibria
Mohammad Golam Kibria il 10 Mag 2011
hi i have a matrix as follows a =
2 3 4
4 3 2
1 2 3
>> sort(a)
ans =
1 2 2
2 3 3
4 3 4
i want to sort the matrix as follows
1 2 3
2 3 4
4 3 2
how to do this?

Risposta accettata

Walter Roberson
Walter Roberson il 10 Mag 2011
sortrows(a)

Più risposte (0)

Categorie

Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by