How to plot the frequency response of a fir filter when I only have the filter co-efficients?

48 ビュー (過去 30 日間)
Sriram Arumugavel
Sriram Arumugavel 2018 年 11 月 12 日
編集済み: Star Strider 2018 年 11 月 12 日
Hi,
I'm working on a legacy code and came across the filter coefficients of a FIR filter. I have the impulse response of the filter in an array. I like to plot the frequency response to understand the filter's characteristics. Unfortunately the previous developer did not leave any documentation and I need to find this myself. I'm not familiar with Matlab and can anyone guide me with this?
Thanks

回答 (1 件)

Star Strider
Star Strider 2018 年 11 月 12 日
編集済み: Star Strider 2018 年 11 月 12 日
Use the freqz (link) function to plot the Bode plot.
Since your FIR filter only has the ‘b’ coefficients, plot it as:
figure
freqz(b,1)

カテゴリ

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

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by