sort_by_x

Sorts x and y according to x only.

You are now following this Submission

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 (2026). sort_by_x (https://in.mathworks.com/matlabcentral/fileexchange/6424-sort_by_x), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0