Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

limiting the Substraction Difference

1 visualización (últimos 30 días)
ravi shukla
ravi shukla el 20 de Oct. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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?

Respuestas (1)

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

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by