Filter löschen
Filter löschen

Extract 5 highest value of a vector

1 Ansicht (letzte 30 Tage)
Francesco
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... )

Akzeptierte Antwort

Andrei Bobrov
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)

Kategorien

Mehr zu Get Started with MATLAB 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!

Translated by