How to index a sorted array with the actual array?

1 view (last 30 days)
How to index a sorted array with the actual array?

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 18 Dec 2014
a = rand(20,1);
[new,idx] = sort(a);

More Answers (0)

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!