Problem with a discrete notch filter design
Ältere Kommentare anzeigen
Hi,
I'm new to matlab and simulink programming and I now have to design and test a notch filter. The sampling frequency is 40kHz and I want to filter a frequency of 120Hz. I have this transfer function in S domaine :
s^2 + 5.685e05
------------------------
s^2 + 125.7 s + 5.685e05
I used c2d to get the Z domain tranfer function and got this :
z^2 - 2 z + 1
----------------------
z^2 - 1.997 z + 0.9969
I tried to use this tranfer function in a discrete transfer function block of simulink to filter my signal and only got an asymptotic result meaning nothing. I also got the recurrence equation out of the transfer function to implement it in a M file and got the same result. The input/reference signal on which I'm testing my filter is a 120Hz sinus.
I don't understand what I'm missing here. If I check the bodeplot of the Z domain transfer function, I can clearly see the notch effect.
Can somebody help me find out what's going on?
Thanks a lot
2 Kommentare
Azzi Abdelmalek
am 24 Aug. 2012
when u've used c2d what was your sample time
Simon
am 24 Aug. 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!