필터 지우기
필터 지우기

delay error

조회 수: 2 (최근 30일)
mahmoud ibrahim
mahmoud ibrahim 2011년 12월 20일
i have voltage signal when i make it delay then subtract it from each other is suppose give zero but it give zero for some point and 7e-15 for other point and this make me problem coz i put output to switch to detected zero pass.
any one know how make it ignore 7e-15 value and make it feel like zero

답변 (1개)

Wayne King
Wayne King 2011년 12월 20일
You can always use a tolerance in your code.
tol = 1e-12; if (abs(x)< tol)
end
Or whatever you want the tolerance to be.
  댓글 수: 1
mahmoud ibrahim
mahmoud ibrahim 2011년 12월 20일
which one relative or absolute tolerance ??

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by