NaN in deconvolution

Hi guys,
I am stuck with a deconvolution part in my program. I have a filter o/p and the filtered o/p, but they both have zeros and numbers too. When I am trying to deconvolute, it returns "NaN" values. Is there any solution to it? I m stuck here for days. Please help me.
Thanks and regards,
Raj.

 채택된 답변

Amith Kamath
Amith Kamath 2011년 12월 14일

1 개 추천

Since your data has zeros in them, deconvolution may return NaNs because you are dividing by zeros. What you could do is either of these:
try by adding 'eps' to all the zero values, so that it results in finite values, although not exactly accurate,
or, remove the NaN values by using ~isfinite or ~isnan.

댓글 수: 4

raj0689
raj0689 2011년 12월 14일
thanks Amith,
I will try that out and will let u know.. :)
raj0689
raj0689 2011년 12월 14일
but Amith, how can i do it.. Since I haven't used eps, i am quite confused.
even_val=eps.*deconv(fil_sig_demod_even,fil_op);
Is above line the right format ?
Thanks again..
Walter Roberson
Walter Roberson 2011년 12월 14일
even_val=deconv(eps+fil_sig_demod_even,eps+fil_op);
raj0689
raj0689 2011년 12월 15일
thanks Walter :) its working , but still i am not able to reverse my modulation.. getting lots of errors in getting +1s and -1s.. :(

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2011년 12월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by