Problem with a discrete notch filter design
Afficher commentaires plus anciens
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 commentaires
Azzi Abdelmalek
le 24 Août 2012
when u've used c2d what was your sample time
Simon
le 24 Août 2012
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Discrete dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!