Matlab function with inf in end points
显示 更早的评论
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 个评论
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
2022-9-4
移动:Matt J
2022-9-4
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!