Extract 5 highest value of a vector
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Francesco
il 26 Feb 2014
Modificato: Andrei Bobrov
il 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 Commenti
Risposta accettata
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)
Vedere anche
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!