Azzera filtri
Azzera filtri

Extract 5 highest value of a vector

1 visualizzazione (ultimi 30 giorni)
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... )

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 26 Feb 2014
Modificato: Andrei Bobrov il 26 Feb 2014
[a,ii] = sort(avgDE,'descend');
outidx = ii(1:5);

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by