欢迎来到天天文库
浏览记录
ID:41830200
大小:465.78 KB
页数:9页
时间:2019-09-03
《[精品]DSP实验报告4》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、DSP实验报告4(FIR数字滤波器的设计)08电子2-14董少丽1,1^1<71.理想低通FIRDF的频率特性为=5C兀0,—2、quency(xnrad/sample)mp)①pruc嘗500-50■1000■200-400-60000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xnrad/sample)0,co<—1.理想高通FIRDF的频率特性为严)={5i711,—3、amming窗理想高通FIRDF频率响应曲线title('hamming窗理想高通FIRDF频率响应曲线T其频率响应曲线如下图所示,500-5000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)・10010000-1000■200000.10.20.30.40.50.60.70.80.91Ico4、<0・3龙0.3龙v69v0.6龙0.6龙5、性相位。滤波器系数的长度为29。画出滤波器的频率响应曲线。解:其程序如下,clear,closeallwp=[0.30.6];M=29;b=firl(M-l,wpzhamming(M));freqz(b,1/512);title(1Hamming窗理想带通FIRDF频率响应曲线T其频率响应曲线如下图所示,500(8P)①pruc6el/l0-500-1000-150000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)1.用切比雪夫最佳一致逼近法设计一个多通带线性相位的FIR滤波器。对归一化频率,0.1〜0.15及0.6、3〜0.36为通带,其余为阻带,阻带边缘频率分别为0.05,0.18,0.25,0.41。先画出该理想滤波器的幅频相应,再令滤波器长度为55,分别给定通带和阻带的加权值(三组wtx值),研究不同加权值对滤波器性能的影响,输出滤波器抽样相应、幅频及相频响应。解:其程序如下,clear,closeallf=[0.05.1.15.18.25.3.36.411];A=[0011001100];weigh=[10110110;11111;1101101];fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));figure,freqz(bf1,256f1);end7、figure,fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));subplot(3,1,i);stem(b,1.1);end该理想滤波器的幅频、相频以及抽样响应曲线分别如下所示,mp)①pmcbelAI0.20.250.30.350.40.450.5Frequency(Hz)"10000.055000-50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)-1000图4-1weigh=[10110110]时的频率响应曲线(8P)①pmc詈500-50-10000.050.10.150.20.250.8、30.350.40.450.5Frequency(Hz)5000・50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-2weigh=[l1111]时的频率响应曲线(89①P5U6B乏20■40--6000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-3weigh=[l101101]时的频率响应曲线0
2、quency(xnrad/sample)mp)①pruc嘗500-50■1000■200-400-60000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xnrad/sample)0,co<—1.理想高通FIRDF的频率特性为严)={5i711,—3、amming窗理想高通FIRDF频率响应曲线title('hamming窗理想高通FIRDF频率响应曲线T其频率响应曲线如下图所示,500-5000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)・10010000-1000■200000.10.20.30.40.50.60.70.80.91Ico4、<0・3龙0.3龙v69v0.6龙0.6龙5、性相位。滤波器系数的长度为29。画出滤波器的频率响应曲线。解:其程序如下,clear,closeallwp=[0.30.6];M=29;b=firl(M-l,wpzhamming(M));freqz(b,1/512);title(1Hamming窗理想带通FIRDF频率响应曲线T其频率响应曲线如下图所示,500(8P)①pruc6el/l0-500-1000-150000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)1.用切比雪夫最佳一致逼近法设计一个多通带线性相位的FIR滤波器。对归一化频率,0.1〜0.15及0.6、3〜0.36为通带,其余为阻带,阻带边缘频率分别为0.05,0.18,0.25,0.41。先画出该理想滤波器的幅频相应,再令滤波器长度为55,分别给定通带和阻带的加权值(三组wtx值),研究不同加权值对滤波器性能的影响,输出滤波器抽样相应、幅频及相频响应。解:其程序如下,clear,closeallf=[0.05.1.15.18.25.3.36.411];A=[0011001100];weigh=[10110110;11111;1101101];fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));figure,freqz(bf1,256f1);end7、figure,fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));subplot(3,1,i);stem(b,1.1);end该理想滤波器的幅频、相频以及抽样响应曲线分别如下所示,mp)①pmcbelAI0.20.250.30.350.40.450.5Frequency(Hz)"10000.055000-50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)-1000图4-1weigh=[10110110]时的频率响应曲线(8P)①pmc詈500-50-10000.050.10.150.20.250.8、30.350.40.450.5Frequency(Hz)5000・50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-2weigh=[l1111]时的频率响应曲线(89①P5U6B乏20■40--6000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-3weigh=[l101101]时的频率响应曲线0
3、amming窗理想高通FIRDF频率响应曲线title('hamming窗理想高通FIRDF频率响应曲线T其频率响应曲线如下图所示,500-5000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)・10010000-1000■200000.10.20.30.40.50.60.70.80.91Ico
4、<0・3龙0.3龙v69v0.6龙0.6龙5、性相位。滤波器系数的长度为29。画出滤波器的频率响应曲线。解:其程序如下,clear,closeallwp=[0.30.6];M=29;b=firl(M-l,wpzhamming(M));freqz(b,1/512);title(1Hamming窗理想带通FIRDF频率响应曲线T其频率响应曲线如下图所示,500(8P)①pruc6el/l0-500-1000-150000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)1.用切比雪夫最佳一致逼近法设计一个多通带线性相位的FIR滤波器。对归一化频率,0.1〜0.15及0.6、3〜0.36为通带,其余为阻带,阻带边缘频率分别为0.05,0.18,0.25,0.41。先画出该理想滤波器的幅频相应,再令滤波器长度为55,分别给定通带和阻带的加权值(三组wtx值),研究不同加权值对滤波器性能的影响,输出滤波器抽样相应、幅频及相频响应。解:其程序如下,clear,closeallf=[0.05.1.15.18.25.3.36.411];A=[0011001100];weigh=[10110110;11111;1101101];fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));figure,freqz(bf1,256f1);end7、figure,fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));subplot(3,1,i);stem(b,1.1);end该理想滤波器的幅频、相频以及抽样响应曲线分别如下所示,mp)①pmcbelAI0.20.250.30.350.40.450.5Frequency(Hz)"10000.055000-50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)-1000图4-1weigh=[10110110]时的频率响应曲线(8P)①pmc詈500-50-10000.050.10.150.20.250.8、30.350.40.450.5Frequency(Hz)5000・50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-2weigh=[l1111]时的频率响应曲线(89①P5U6B乏20■40--6000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-3weigh=[l101101]时的频率响应曲线0
5、性相位。滤波器系数的长度为29。画出滤波器的频率响应曲线。解:其程序如下,clear,closeallwp=[0.30.6];M=29;b=firl(M-l,wpzhamming(M));freqz(b,1/512);title(1Hamming窗理想带通FIRDF频率响应曲线T其频率响应曲线如下图所示,500(8P)①pruc6el/l0-500-1000-150000.10.20.30.40.50.60.70.80.91NormalizedFrequency(xkrad/sample)1.用切比雪夫最佳一致逼近法设计一个多通带线性相位的FIR滤波器。对归一化频率,0.1〜0.15及0.
6、3〜0.36为通带,其余为阻带,阻带边缘频率分别为0.05,0.18,0.25,0.41。先画出该理想滤波器的幅频相应,再令滤波器长度为55,分别给定通带和阻带的加权值(三组wtx值),研究不同加权值对滤波器性能的影响,输出滤波器抽样相应、幅频及相频响应。解:其程序如下,clear,closeallf=[0.05.1.15.18.25.3.36.411];A=[0011001100];weigh=[10110110;11111;1101101];fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));figure,freqz(bf1,256f1);end
7、figure,fori=l:3b=remez(54,f,A,weigh([i],[1,2,3,4,5]));subplot(3,1,i);stem(b,1.1);end该理想滤波器的幅频、相频以及抽样响应曲线分别如下所示,mp)①pmcbelAI0.20.250.30.350.40.450.5Frequency(Hz)"10000.055000-50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)-1000图4-1weigh=[10110110]时的频率响应曲线(8P)①pmc詈500-50-10000.050.10.150.20.250.
8、30.350.40.450.5Frequency(Hz)5000・50000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-2weigh=[l1111]时的频率响应曲线(89①P5U6B乏20■40--6000.050.10.150.20.250.30.350.40.450.5Frequency(Hz)图4-3weigh=[l101101]时的频率响应曲线0
此文档下载收益归作者所有