Plotting frequency response from fdatool filter coefficients?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by