Problem with a discrete notch filter design
古いコメントを表示
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 件のコメント
Azzi Abdelmalek
2012 年 8 月 24 日
when u've used c2d what was your sample time
Simon
2012 年 8 月 24 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Discrete についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!