Sorting of numbers in MATLAB
Versione 1.0.01 (1,17 KB) da
Dr. Manotosh Mandal
Sorting of numbers in ascending or descending order by 'sort' command.
For details watch the lecture: https://youtu.be/A6hq2Wd87kA
Example:
Given numbers: 2 3 1 5 -1.3 7.5
Elements of array in ascending order:
-1.300 1.000 2.000 3.000 5.000 7.500
Elements of array in descending order:
7.500 5.000 3.000 2.000 1.000 -1.300
Cita come
Dr. Manotosh Mandal (2024). Sorting of numbers in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/97502-sorting-of-numbers-in-matlab), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2021a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.