How tatement to use if statement to eliminate unwanted value
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sadiqa ilyas
am 21 Sep. 2019
Kommentiert: sadiqa ilyas
am 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.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Variables finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!