フィルターのクリア

Plotting frequency response from fdatool filter coefficients?

1 回表示 (過去 30 日間)
Dick Rusell
Dick Rusell 2014 年 10 月 18 日
コメント済み: Star Strider 2014 年 10 月 18 日
I created a 400 order bandpass fir filter using fdatool and exported the coefficients. How do I create the frequency response using the coefficients I just made?

採用された回答

Star Strider
Star Strider 2014 年 10 月 18 日
編集済み: Star Strider 2014 年 10 月 18 日
The easiest way is to use the freqz function to display it. It will also calculate the frequency response and output it as a function of frequency. Use the phasez function for the phase.
  2 件のコメント
Dick Rusell
Dick Rusell 2014 年 10 月 18 日
so would it just be if Win was the variable for the coefficients:
Win = coefficients
Hd = freqz(Win, 1, omega);
like that?
Star Strider
Star Strider 2014 年 10 月 18 日
That would work, with ‘omega’ being a vector of normalised frequencies, giving you the frequency response at those frequencies in ‘Hd’. Note that ‘Hd’ is a complex frequency vector, so you can calculate both amplitude and phase from it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by