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

 Respuesta aceptada

Honglei Chen
Honglei Chen el 15 de Mayo de 2012

0 votos

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

2 comentarios

Vedran
Vedran el 15 de Mayo de 2012
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 el 15 de Mayo de 2012
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.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 15 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by