You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Riccardo Dessi (2026). sort1.m (https://in.mathworks.com/matlabcentral/fileexchange/46529-sort1-m), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.58 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
