Matlab function with inf in end points
Mostra commenti meno recenti
hi
I have a function define in an range [ a, b ] the function is ιnf at end point F(a)=inf F(b)=inf
there a method to eliminate this singular point?
thank
George
2 Commenti
You can rewrite F to give whatever alternative value you wish at a and b, e.g,
tand(89)
tand(90)
F(89)
F(90)
function f=F(x)
f=tand(x);
if isinf(f), f=0; end
end
but whether that will solve your ultimate problem, we've no way of knowing, without more context.
george veropoulos
il 4 Set 2022
Spostato: Matt J
il 4 Set 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Number Theory in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!