Extract 5 highest value of a vector
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Francesco
am 26 Feb. 2014
Bearbeitet: Andrei Bobrov
am 26 Feb. 2014
If I want to extract the indices of the 5 highest value of a avg vector (30x1 for example) how can I do?
ind = find(avgDE... )
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 26 Feb. 2014
Bearbeitet: Andrei Bobrov
am 26 Feb. 2014
[a,ii] = sort(avgDE,'descend');
outidx = ii(1:5);
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!