How tatement to use if statement to eliminate unwanted value
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
sadiqa ilyas
le 21 Sep 2019
Commenté : sadiqa ilyas
le 21 Sep 2019
Hi,.
I have set of values like .001,0.002,...inf
i want to find the max value from these excluding inf
X=U/10000;
i=[X]
m=max(i);
if m == Inf;
m=m(i-1);
end
How to get rid of Inf.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Variables 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!