sort_by_x

Sorts x and y according to x only.
1.6K Downloads
Updated 2 Dec 2004

No License

This function will sort two vectors (x and y) in either ascending or descending order according to the values of x only and produce a sorted x_new and it will also produce y_new so that the entries in y_new correspond to the initial y values associated with x. Similar to Excel sorting program.

Cite As

Daniel Feldman (2024). sort_by_x (https://www.mathworks.com/matlabcentral/fileexchange/6424-sort_by_x), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0