Finding the indexes of values of one vector to another Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How woudl I be able to compute the following problem below? Where it gives the order of where sorted a is in a. I want to ahieve the expected Output below.
a = [13.8487, 20.8059, 23.5011, 23.2286, 22.2261];
sorted_a = sort(a);
comparison = find(a == sorted(a));
Expected Output
1 2 5 4 3
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!