Is it possible to generate impulse response, passband ripple, stopban attenuation if I am with a set of filter coefficients?

If I have the sets of filter coefficients, is it possible to measure impulse response, passband ripple, stopband attenuation using matlab?

 採用された回答

Star Strider
Star Strider 2015 年 12 月 30 日
Yes. If you have the Signal Processing Toolbox, you can generate a Bode plot with the freqz function, and the impulse response with the impz function.

2 件のコメント

Poulami Das
Poulami Das 2015 年 12 月 30 日
Thank you so much for your kind reply. I will try to use Bode plot. But impz will work to plot impulse response, can I get the value of h[n] using matlab? I just want to optimize the error G(w)[Hd(w)-Hi(w)]. For Hi(w) calculation I will be needed to know h(n). Hd represents desired filter, Hi represents designed filter. G(w) = weighting function.
Poulami Das
Poulami Das 2015 年 12 月 30 日
I have seen freqz function. But it will work on filter parameters. If I am having a set of filter coefficients, then what should I do? Order of the filter is 20 therefore number of coefficients 11. From these 11 coefficients how can I plot frequency response?

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

その他の回答 (2 件)

Poulami Das
Poulami Das 2015 年 12 月 30 日
I have seen freqz function. But it will work on filter parameters. If I am having a set of filter coefficients, then what should I do? Order of the filter is 20 therefore number of coefficients 11. From these 11 coefficients how can I plot frequency response? impz will work to plot impulse response, can I get the value of h[n] using matlab? I just want to optimize the error G(w)[Hd(w)-Hi(w)]. For Hi(w) calculation I will be needed to know h(n). Hd represents desi

2 件のコメント

Poulami Das
Poulami Das 2015 年 12 月 30 日
Thank you it worked.
Poulami Das
Poulami Das 2015 年 12 月 30 日
Thank you so much. I have checked freqz and impz again. This time more mindfully and it worked.

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

Poulami Das
Poulami Das 2015 年 12 月 30 日
Thank you so much. I have checked freqz and impz again. This time more mindfully and it worked.

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by