sort1.m

sort vector algorithm
194 Downloads
Aktualisiert 7. Mai 2014

Lizenz anzeigen

This function gives you the possibility to sort a vector using a "standard sort algorithm".
The standard call is: "[v pos]=sort1(x,type)" in which x represents the vector that we want
to put in order. Type it's a string variable that can assume 2 values: "ascend" ,if u want to order
the number from smallest to biggest, "descend" the opposite. The default value is "descend".
The output v and pos are respectively the ordered vector and position
vector that indicates the translation, for each number, occurred during the
sort process.

Zitieren als

Riccardo Dessi (2024). sort1.m (https://www.mathworks.com/matlabcentral/fileexchange/46529-sort1-m), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2010b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0