Help with IIR filter

Hello everyone.
I've downloaded matlab,and am trying to practise some things in it,that i've learned in signals and system theory.
So, i'm trying to create an IIR filter, that I have transfer function for, i'm given H(z)= Z /(Z-1)
So, can anyone help me how to create that filter in Matlab, and then to put some signal through it?
Thank u in advance, and i'm sure many more questions are coming for u from me in the future
All the best

 採用された回答

Honglei Chen
Honglei Chen 2012 年 5 月 15 日

0 投票

Transfer functions are just filter coefficients, so you have the numerator 1 and denominator [1 -1]
y = filter(1,[1 -1],x)

2 件のコメント

Vedran
Vedran 2012 年 5 月 15 日
Thank you very much,i did it as you wrote and it works :)
So,for any other IIR filter,I just find filter coefficients and do the same?
And how can I get the graphics of impulse/frequency response of this filter?
Thank you once again
Honglei Chen
Honglei Chen 2012 年 5 月 15 日
fvtool(1,[1 -1]) will give you the impulse/frequency responses. Mathematically, yes you can do this to all IIR filters. Practically, you may run into numerical issues for certain filter and that's where sos filters come into the picture. You can find relevant discussions in virtually any DSP book.

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

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by