Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

limiting the Substraction Difference

1 visualizzazione (ultimi 30 giorni)
ravi shukla
ravi shukla il 20 Ott 2020
Chiuso: MATLAB Answer Bot il 20 Ago 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?

Risposte (1)

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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by