Je cherche à faire un tri imbriqué avec une matrice dans MATLAB. Dis ma matrice ressemble à ceci:Comment faire un tri imbriqué dans MATLAB?
[b a;
b c;
a c;
a a]
Je voudrais d'abord trier par la première colonne et maintenir ce genre, puis trier par la deuxième colonne. Le résultat serait:
[a a;
a c;
b a;
b c]
Comment cela serait-il fait?
Dupliquer: http://stackoverflow.com/questions/134712/sorting-2-d-array-in-matlab-w-r-t-one-column – gnovice