フィルターのクリア

Create a filter function without using filter function (of course)

1 回表示 (過去 30 日間)
Riven Yvet
Riven Yvet 2016 年 11 月 27 日
コメント済み: Star Strider 2016 年 11 月 27 日
So I want to create a function that filters an input sequence using the transfer function of a filter. But the catch is I want to do this function at the frequency domain, and the only way to do this is to implement Discrete Fourier transform. So the inputs to my function are (B,A,S) where B is the numerator coefficients of the transfer function, A is the denominator coefficients of the transfer function, and S is the input sequence. The output is the time domain sequence. I want the function to be implemented in the frequency domain, so I would first convert S array to its frequency components using DFT. Then I would get the frequency response of the transfer function by using freqz. Multiplying the sequences will net you Y(W) right? So using IDFT you can get the time domain signal. But using this would net a different answer when filter function is used. I'm quite a noob at DSP but pls can someone help me?

採用された回答

Star Strider
Star Strider 2016 年 11 月 27 日
If you want to filter in the frequency domain, use the Signal Processing Toolbox fftfilt function. It uses the overlap-and-add method. See the documentation for details.
  7 件のコメント
Riven Yvet
Riven Yvet 2016 年 11 月 27 日
OK. Thank you! You're a lifesaver.
Star Strider
Star Strider 2016 年 11 月 27 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFilter Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by