数字信号处理DSP实验四报告

数字信号处理DSP实验四报告

ID:44197231

大小:235.21 KB

页数:7页

时间:2019-10-19

数字信号处理DSP实验四报告_第1页
数字信号处理DSP实验四报告_第2页
数字信号处理DSP实验四报告_第3页
数字信号处理DSP实验四报告_第4页
数字信号处理DSP实验四报告_第5页
资源描述:

《数字信号处理DSP实验四报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、Example:DesignofaButterworthLowpassDigitalFilterbyusingbilinearmethodbandpassattenuation1dBbandstopattenuation40dBbandpassedgefrequency400hzbandstopedgefrequency500hzsamlingfrequency2000hzclc;clearallRp=1;%bandpassattenuationindB带通衰减带通截至频率带阻截至频率采样频率Rs=40;%bandstopattenuationin

2、dB带阻衰减OmegaPl_l=400;%bandpassedgefrequencyOmegaSl_l=500;%bandstopedgefrequencyFp=2000;%samlingfrequency%changeanalogfrequencytodigitalangularWpl=2*pi*0megaPl_l/Fp;frequencyWs1=2*pi*OmegaSl_l/Fp;%changeanalogfrequencytodigitalangular数字参数frequency0megaPl=2*Fp*tan(Wpl/2);%nonline

3、arlization转换为模拟参数OmegaS1=2*Fp*tan(Wsl/2);%nonlinearlizationEta_P=OmegaPl/OmegaPl;%NormalizationEta_S=OmegaSl/OmegaPl;%Normalization一化Lemta_P_EquivalentLowPass=Eta_P;%changetotheequivalentLowpasspatameterLemta_S_EquivalentLowPass=Eta_S;%%changetotheequivalentLowpasspatameter变量命

4、名%EstimatetheFilterOrder[N,Wn]=buttord(Lemta_P_EquivalentLowPass,Lemta_S_EquivalentLowPass,Rp,Rs,1s1);%DesigntheFilter[numl.deni]=butter(N.Wn,1s1);[num2.den2]=lp21p(numl,deni,OmegaPl);[num,den]=bilinear(num2,den2,Fp);%Computethegainresponsew=0:pi/255:pi;h=freqz(num,den,w);g=20

5、*logl0(abs(h));%Plotthegainresponsefigure;plot(w/pi,g);gridaxis([01-605]);xlabel(

6、omegm/pi');ylabelLGainindB1);title(1GainResponseofaButterworthLowpassFilter1);result:GainResponseofaButterworthLowpassFilter0-10-20-30-40-50-6000.10.20.30.40.50.60.70.80.91cd/k8Pu一weeExperiment

7、:1DesignofaChebylHighpassDigitalFilterbyusingbilinearmethodbandpassattenuation1dBbandstopattenuation32dBbandpassedgefrequency800hzbandstopedgefrequency500hzsamlingfrequency2000hzcode:clc;clearallRp=l;Rs=32;OmegaPl_l=800;OmegaSl_l=500;Fp=2000;Wpl=2*pi*OmegaPl_l/Fp;Ws1=2*pi*Omeg

8、aSl_l/Fp;%digtalfreguency0megaPl=2*Fp*tan(Wpl/2);0megaSl=2*Fp*tan(Wsl/2);%changeintoanologfrequency%归一化Eta_P=OmegaPl/OmegaPl;EtaS=0megaSl/0megaPl;[N,Wn]=cheblord(l,l/Eta_S,Rp,Rs/s);[B/A]=chebyl(N,l,Wn,'S');[Bl;AT]=lp2hp(B,A,Eta_S);[num,den]=bilinear(BT,A'T;0.5);%MAYBEERRORw=0:

9、pi/255:pi;h=freqz(num,den,w);g=20*logl0(abs(h));figure;plot(w

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。