NaN in deconvolution
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Amith Kamath
2011 年 12 月 14 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!