Clear Filters
Clear Filters

Sort the first column of an array in ascending order

1 view (last 30 days)
Hi I need to sort the first column of an array in ascending order by also moving the numbers in the second column like this:

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 5 Aug 2023
Check out sortrows

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!