bubblesortdim - array sort using just a column as parameter
Versión 1.0.0 (1,28 KB) por
Henrique Costa
Sorts array lines using only one column as the dimension to be sorted
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)
Citar como
Henrique Costa (2026). bubblesortdim - array sort using just a column as parameter (https://la.mathworks.com/matlabcentral/fileexchange/71960-bubblesortdim-array-sort-using-just-a-column-as-parameter), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2019a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Shifting and Sorting Matrices en Help Center y MATLAB Answers.
Etiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
