How tatement to use if statement to eliminate unwanted value
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sadiqa ilyas
el 21 de Sept. de 2019
Comentada: sadiqa ilyas
el 21 de Sept. de 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.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Variables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!