Info
This question is closed. Reopen it to edit or answer.
limiting the Substraction Difference
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Ameer Hamza
on 20 Oct 2020
One way to avoid such a situation is to add a small value to the denominator.
A/(A-B+eps)
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!