How to get first 3 maximum number in a matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!