Info
此问题已关闭。 请重新打开它进行编辑或回答。
limiting the Substraction Difference
2 次查看(过去 30 天)
显示 更早的评论
i am running a code, in which there may arise a situation when my denominator might get a value =0 (and this denominator is actually diff of two quantities for eg A-B.)
what can i do to avoid getting this situation where i may get undefined values?
0 个评论
回答(1 个)
Ameer Hamza
2020-10-20
One way to avoid such a situation is to add a small value to the denominator.
A/(A-B+eps)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!