Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

limiting the Substraction Difference

1 Ansicht (letzte 30 Tage)
ravi shukla
ravi shukla am 20 Okt. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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?

Antworten (1)

Ameer Hamza
Ameer Hamza am 20 Okt. 2020
One way to avoid such a situation is to add a small value to the denominator.
A/(A-B+eps)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by