필터 지우기
필터 지우기

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