




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Double Notch Filter DesignXun Wang10112746101.IntroductionA lot of signals in real situation are often associated with noise in signal processing.In order to reduce or eliminate the influence of noise and extract useful signals,we use a filter to decrease the scale of noise signal.Filter can be defi
2、ned as a system which can produce the response which we need by inputing the original signal to the system.The requirement of response can be exist in time domain or frequency domain.The function of filter is mainly decided by the system function.The pole location have a significant effect on the pr
3、operties of amplitude,the position of the peak of wave and extent of acuity.The zero location mainly affect the position of trough of wave and the extent of hollow.We can qualitatively draw the shape of amplitude according to the analysis of pole and zero points.This theory provide us a method to di
4、rectly design the filter:At first we can set the position of poles according to the properties of amplitude,and make sure what the system function is.Comparing it with the one we need,if the system function can not satisfy our requirement,we can revise it by adding or deleting the number of zero poi
5、nts,or by move the positions of zero points.This method is called pole-zero placement filter design method.It can be used not only in designing IIR digital filters but also in designing FIR digital filters.Filter design2.2.FilterIn order to obtain the system function,we must try many times to set th
6、e the poles and zeros of the system and observe if the properties can satisfy the requirement.If it does not,we must try these steps again and again to make the filter satisfy our requirement.In fact it is a process of approaching.We should obey some rules when using this method.(1we should consider
7、 which kind of filter it belongs to.If we need to design a FIR filter,we should not set poles,and just need to set zeros.By doing this we can design a non-recursive filter.It is possible that it becomes to recursive if we set some poles in the designing process.(2If we want to filter a point of freq
8、uency,we can set a zero at this point of digital frequency.(3The poles must be in the unit circle according to the requirement of a stable system.(4Aiming at accomplish the structure of filter,the poles are zeros are both should be set symmetrically(other than they are in the real axis.It means that
9、 the a couple of zeros must be conjugate.The situation is the same as poles.(5If we want to make the curve of frequency deeper or sharper at a certain point,we can set more than one zeros or poles near this point.Proccess:Step1:analysis of the signal in frequency domainBy analysing the frequency of
10、the signal,we can make sure which frequency we should to filter.The value of an ideal notch filter should be 0at the point of frequency which we need to eliminate and be 1at the other frequency.It just be like this:(=010,H (2-1The sampling period is 81921,so the sampling frequency is 8192Hz.The freq
11、uency f1=697Hz and f2=1209Hz are the points of frequency which we should eliminate.Step2:setting the zero point of the filter.Because the property of digital filter in frequency domain is its Z-transfer in unit-circle of unit impulse response,we just need to set zero at the points in unit circle whi
12、ch correspond to the location of the frequency which you need to eliminate.17.020851.0281926971=×=×=(2-2(a295.02819212092=×=(2-2(bSo we set four zeros at295.0*(-exp ,295.0*(exp c ,0.17*(-exp c ,0.17*exp(j 4321j c j j c =The system function is42244321z 1.2z -(1z 1.7208z -1(-(-(-(-(z z
13、c z c z c z c z K z H +=4-3-2-1-4234z z 1092.2z 5206.4z 1092.2-1z 1z 1092.2-z 5206.4z 1092.2-z +=+=(2-3K is a constant.we can suppose it is 1now.We can use matlab to draw the curve of this system function.Input matlab code:clear all;close all;clc;BB=exp(697/8192*2*pi*iexp(-(697/8192*2*pi*iexp(1209/8
14、192*2*pi*iexp(-(1209/8192*2*pi*i;B=poly(BB;A=1;W=-3*pi:0.01:3*pi;H=freqz(B,A,W;subplot(211,plot(W/pi,abs(H,'LineWidth',2;xlabel('omega/pi'ylabel('|H(ejomega|'title('amplitude-frequency response'axis(-22-0.215;grid;subplot(212,plot(W/pi,angle(H,'LineWidth',2;xl
15、abel('omega/pi'ylabel('theta(omega'title('phase-frequency response'axis(-22-44;grid;set(gcf,'color','w'We can get the curve: Figure1the amplitude-frequency response andphase-frequency response curves Figure2The affection of the two zeros in curveThe two figure
16、s present the properties of filter without poles.From them we can find that the two points are really.0.It means that the noise at f1and f2can295.0and17really be filtered.But we can also find some serious flaws.There are more noise at high frequency band and the transition band is long,so it is not
17、an perfect filter.Step3:setting the zero point of the filterAfter we finishing the processing of setting the zeros,we begin to set the poles.The poles must be in the unit cycle.The offset effect will be more obvious if the poles are closer to zeros,then the stop-band will be more narrow and the tran
18、sition band will be steeper.In order to prove this theorem,we set the two poles295.0(-exp ,295.0(exp ,17.0(-exp ,17.0(exp 24231211=j d j d j d j d In this equation,1and 2are variables.So the system function can be expressed as(222121222122221213214234222221122243214321z 2.17208.1-z 065.2z 2.11.7208-
19、z 1z 1092.2-z 5206.4z 2109.2-z z 2.1-z (z 7208.1-z (1z 2.1-z (1z 1.7208-z (d -z (d -z (d -z (d -z (c -z (c -z (c -z (c -z (z (H +=+=(2-4Because we are detecting the relationship between 21,and |H(z|,we must change the value of 1and 2and observe the change of curves.In order to simplify the process o
20、f designing,I set 21=.The matlab code isclear all;close all;clc;c=1;d=2;for a=0.96:0.01:0.99;AA=a*exp(0.17*pi*ia*exp(-0.17*pi*ia*exp(0.295*pi*ia*exp(-0.295*pi*i;A=poly(AA;BB=exp(697/8192*2*pi*iexp(-(697/8192*2*pi*iexp(1209/8192*2*pi*iexp(-(1209/8192*2*pi*i;B=poly(BB;W=-3*pi:0.00001:3*pi;H=freqz(B,A,
21、W;subplot(4,2,c,semilogy(W*8192/(2*pi,abs(H;xlabel('f'ylabel('|H(ejomega|'title('amplitude-frequency response'axis(04500-200150;grid;subplot(4,2,d,plot(W*8192/(2*pi,angle(H,'LineWidth',2;xlabel('f'ylabel('theta(omega'title('phase-frequency response
22、'axis(04500-44;grid;set(gcf,'color','w'c=c+2;d=d+2;EndThe result is F igure3amplitude-frequency and phase-frequencycurves of filter with variable polesWe can find that the first set of data is suitable to us.We can zoom the first figure: Figure4The amplitude-frequency response wh
23、en1=2=0.96It is obvious that the noise at0.17and0.295are really filtered and there is no noise at high frequency band.The transtion band can be steep enough considering the amplitude-frequency curve of noise signal in x. Figure5amplitude-frequency curve of noise signal Experimental results3.3.Experi
24、mentalThe amplitude-frequency and phase-frequency spectrums of original sound x are: Figure6Amplitude-frequency and phase-frequencyspectrums of original sound xBy passing the sound x through the filter I designed,we can get the output signal f1. The program is like this:load x.matBB=exp(697/8192*2*p
25、i*iexp(-(697/8192*2*pi*iexp(1209/8192*2*pi*iexp(-(1209/8192*2*pi*i;B=poly(BB;AA=0.96*exp(697/8192*2*pi*i0.96*exp(-(697/8192*2*pi*i0.96*exp(1209/8192*2*pi*i0.96*exp(-(1209/8192*2*pi*i;A=poly(AA;f1=filter(B,A,x;freqz(f1The spectrums of the output signalare Figure 7Amplitude-frequency and phase-frequen
26、cyspectrums of output signalFrom this figure I think the first set of data is the most suitable because the magnitude at the noise frequency points is decreased.The system function of filter is4-3-2-1-4-3-2-1-z .849302.5843z -z 7464.3z 2.8041-1z z 1092.2-z 6520.4z 9210.2-1z (H +=(2-5So4xn-3xn-1092.2
27、-2xn-5206.41xn-1092.2xn-4yn-8493.03yn-4358.2-2yn-6474.31yn-4180.2yn-X(zz z 1092.2-z 5206.4z 1092.2-1(Y(zz 8493.0z 4358.2-z 4674.3z 4180.2-1(H(zX(zY(z4-3-2-1-4-3-2-1-+=+=+=(2-6Equation (2-6is the difference equation.We can use matlab to calculate the poles and zeros of H(zThe program:BB=exp(697/8192*
28、2*pi*iexp(-(697/8192*2*pi*iexp(1209/8192*2*pi*iexp(-(1209/8192*2*pi*i;B=poly(BB;AA=0.96*exp(697/8192*2*pi*i0.96*exp(-(697/8192*2*pi*i0.96*exp(1209/8192*2*pi*i0.96*exp(-(1209/8192*2*pi*i;A=poly(AA;z1=roots(B;p1=roots(A;z=vpa(z1,8,p=vpa(p1,8,zplane(z1,p1;set(gcf,'color','w'The result i
29、sz=.60000307+.79999770*i.60000307-.79999770*i.86047642+.50949027*i.86047642-.50949027*ip=.57600294+.76799779*i.57600294-.76799779*i.82605736+.48911066*i.82605736-.48911066*iFigure8The locations of poles and zeros of filter's system functionWe can also get the colormaps of spectrum of the origina
30、l and the output signals Figure9spectrum of the original signal Figure10spectrum of the output signalComparing figure9and figure10,we can find that figure9is brighter than figure10.It is because the original signal contains the noise signal in a large scope of frequency band.After passing the filter,most of the noise signal is filtered.The final magnitude-frequency curve is: Figure 11 The final magnitude-frequency curve 4.Conclusion Designing digital filter by pole-zero placement filter design method
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 呼和浩特市人民医院副主任护师晋升资格预审
- 秦皇岛市人民医院亚低温治疗技术考核
- 阳泉市中医院检验仪器操作规范考核
- 保定市人民医院超声探头选择与应用考核
- 如何设计女性尿接裤输尿管项目可行性研究报告评审方案2025年
- 邯郸市人民医院医务部副主任主任竞聘述职报告与答辩题库
- 2025中医院血管介入引导考核
- 长治市中医院呼吸科危重症患者院内转运风险评估考核
- 2025年中国碳捕集项目投资计划书
- 晋中市人民医院激光脱毛技术考核
- 3.5画角【知识精练+应用拓展】四年级数学上册课后分层作业(人教版)
- 2023年08月广东海珠区工商联雇员1人笔试历年高频考点试题含答案带详解
- 临床各类引流管的固定及规范管理
- 【面部除皱术】SMAS技术和FAME除皱术
- 【课件】蛋白质是生命活动的主要承担者说课课件高一上学期生物人教版必修1
- GB/T 35370-2017潜水呼吸器检测方法
- 发展经济学 马工程课件 1.第一章 发展中国家与发展经济学
- 沟通心理学之有效沟通技巧
- 公共艺术设计-课件
- 人工智能技术介绍完整版人工智能概述、围棋课件
- 人教版八年级下册英语全册教案完整版教学设计含教学反思
评论
0/150
提交评论