How to get first 3 maximum number in a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Suppose I have a matrix m:
m = [7;1;4;4;12;2;6;10;2];
I want to find first 3 maximum in matrix m, means like:
n = [7;12;10]; % sorting is not issue
0 Commenti
Risposta accettata
Più risposte (2)
Vedere anche
Categorie
Scopri di più su Shifting and Sorting Matrices 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!