logo资料库

数字信号处理matlab习题答案.docx

第1页 / 共49页
第2页 / 共49页
第3页 / 共49页
第4页 / 共49页
第5页 / 共49页
第6页 / 共49页
第7页 / 共49页
第8页 / 共49页
资料共49页,剩余部分请下载后查看
课后Matlab习题解答
学院:电子信息工程学院
专业:通信工程
指导老师:钱满义
1、第一章
M1-1
M1-2
M1-3
M1-4
M1-5
M1-6
2、第二章
M2-1
M2-2
M2-3
M2-4
M2-5:
M2-6
3、第四章
M4-1
M4-2
M4-3
M4-4
M4-5
M4-6
M4-7
M4-8
M4-9
4、第五章
M5-1
M5-2
M5-3
M5-4
M5-5
M5-6
M5-7
M5-8
M5-9
M5-10
5、第六章
M6-1
M6-2
6、第七章
M7-1
M7-2
M7-3
M7-4
M7-5
数字信号处理 课后 Matlab 习题解答 学院:电子信息工程学院 专业:通信工程 指导老师:钱满义 2015 年 6 月 26 日
目录 课后 Matlab 习题解答......................................................................................................................1 1、第一章 .......................................................................................................................................... 4 M1-1............................................................................................................................................ 4 M1-2............................................................................................................................................ 5 M1-3............................................................................................................................................ 7 M1-4............................................................................................................................................ 9 M1-5.................................................................................................................................................. 10 M1-6.................................................................................................................................................. 11 2、第二章 ........................................................................................................................................ 12 M2-1.................................................................................................................................................. 12 M2-2.................................................................................................................................................. 15 M2-3.................................................................................................................................................. 16 M2-4.................................................................................................................................................. 18 M2-5:................................................................................................................................................ 20 M2-6.................................................................................................................................................. 21 3、第四章 ........................................................................................................................................ 23 M4-1.......................................................................................................................................... 23 M4-2.......................................................................................................................................... 24 M4-3.......................................................................................................................................... 25 M4-4.......................................................................................................................................... 27 M4-5.......................................................................................................................................... 28 M4-6.......................................................................................................................................... 29 M4-7.......................................................................................................................................... 31 M4-8.......................................................................................................................................... 32 M4-9.......................................................................................................................................... 34 4、第五章 ........................................................................................................................................ 35 M5-1.......................................................................................................................................... 35 M5-2.......................................................................................................................................... 35 M5-3.......................................................................................................................................... 37 M5-4.......................................................................................................................................... 39 M5-5.......................................................................................................................................... 39 M5-6.......................................................................................................................................... 39 M5-7.......................................................................................................................................... 40 M5-8.......................................................................................................................................... 40 M5-9.......................................................................................................................................... 40 M5-10........................................................................................................................................ 40 5、第六章 ........................................................................................................................................ 40 M6-1.......................................................................................................................................... 40 M6-2.......................................................................................................................................... 40 6、第七章 ........................................................................................................................................ 44 M7-1.......................................................................................................................................... 44 M7-2.......................................................................................................................................... 45 第 2页
M7-3.......................................................................................................................................... 47 M7-4.......................................................................................................................................... 48 M7-5.......................................................................................................................................... 48 第 3页
1、第一章 M1-1 代码: f=10; t=-0.2:0.001:0.2; g1=cos(6.*pi.*t); g2=cos(14.*pi.*t); g3=cos(26.*pi.*t); k=-0.2:1/f:0.2; h1=cos(6.*pi.*k); h2=cos(14.*pi.*k); h3=cos(26.*pi.*k); subplot(4,1,1); plot(k,h1,'r.',t,g1,'r'); xlabel('t'); ylabel('g1(t)'); subplot(4,1,2); plot(k,h2,'g.',t,g2,'g'); xlabel('t'); ylabel('g2(t)'); subplot(4,1,3); plot(k,h3,'b.',t,g3,'b'); xlabel('t'); ylabel('g3(t)'); subplot(4,1,4); plot(t,g1,'r',t,g2,'g',t,g3,'b',k,h1,'r.',k,h2,'g.',k,h3,'b.') xlabel('t'); ylabel('g(t)'); legend('g1(t)','g2(t)','g3(t)'); 图像: 第 4页
M1-2 (1)代码: b=[1]; a=[1 -1.845 0.850586]; w=linspace(0,2*pi,200); y=filter(b,a,w); plot(w,y); ylabel('单位脉冲响应'); xlabel('Normalized frequency'); %b=[1]; %a=[1 -1.845 0.850586]; h=impz(b,a,21); %figure(1); stem(0:20,h); ylabel('单位脉冲响应'); xlabel('Normalized frequency'); 图像: 第 5页
(2)代码: b=[1]; a=[1 -1.85 0.85]; w=linspace(0,2*pi,200); y=filter(b,a,w); plot(w,y); ylabel('单位脉冲响应'); xlabel('Normalized frequency'); b=[1]; a=[1 -1.85 0.85]; h=impz(b,a,21); figure(1); stem(0:20,h); ylabel('单位脉冲响应'); 图像: 第 6页
M1-3 (1)代码: x=firls(511,[0 0.4 0.404 1],[1 1 0 0]); k=linspace(0,1,512); stem(k,x); 图像: (2)代码: x=firls(511,[0 0.4 0.404 1],[1 1 0 0]); k=linspace(0,1,512); 第 7页
stem(k,x); k1=0.4*pi; y1=x.*cos(k1*k); A=abs(y1); subplot(4,1,1); plot(A); k2=0.8*pi; y2=x.*cos(k2*k); B=abs(y2); subplot(4,1,2); plot(B); k3=0.9*pi; y3=x.*cos(k3*k); C=abs(y3); subplot(4,1,3); plot(C); k4=pi; y4=x.*cos(k4*k); D=abs(y4); subplot(4,1,4); plot(D); 图像: 第 8页
分享到:
收藏