bubblesortdim - array sort using just a column as parameter

Sorts array lines using only one column as the dimension to be sorted
12 download
Aggiornato 26 giu 2019

Visualizza la licenza

Sorts array lines using only one column as the dimension to be sorted.
Works with arrays of multiple dimensions.
ex.
a= [ 1 5 3;
4 2 6;
7 8 9];
sorted=bublesortdim(a,2);
sorted results in
[4 2 6;
1 5 3;
7 8 9];
OBS: column 2 is sorted but the lines are preserved
OBS: Implemented with buble sort (https://ieeexplore.ieee.org/document/5763927)

Cita come

Henrique Costa (2024). bubblesortdim - array sort using just a column as parameter (https://www.mathworks.com/matlabcentral/fileexchange/71960-bubblesortdim-array-sort-using-just-a-column-as-parameter), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2019a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Shifting and Sorting Matrices in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0