sorting matrix

1 Ansicht (letzte 30 Tage)
Mohammad Golam Kibria
Mohammad Golam Kibria am 10 Mai 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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Mai 2011

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by