what function can be used like arranging number like that?

 Accepted Answer

[~,B] = sort(A);
B(B) = 1:length(B)

2 Comments

If you get an answer that solves your issue, please consider marking it as accepted answer. That is an easy way to say thank you.

Sign in to comment.

More Answers (0)

Products

Tags

Community Treasure Hunt

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

Start Hunting!