フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

limiting the Substraction Difference

1 回表示 (過去 30 日間)
ravi shukla
ravi shukla 2020 年 10 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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?

回答 (1 件)

Ameer Hamza
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)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by