how to get all max values of one vector
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Francesco Grechi
le 2 Avr 2021
Commenté : Francesco Grechi
le 2 Avr 2021
i have for example the following vactor: X = [ 1 2 3 4 5 7 7 3 5 3 2 7]
my aim is to get all the maximum values, so in the vector X the maximum value is 7 and i can find it as Value_max = max(X);
however this function consider only the first 7 and i need a function that give to me all the 7 so the result that i need is Y = [7 7 7]
0 commentaires
Réponse acceptée
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur State-Space Control Design and Estimation 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!