南通大学DSP课程设计实验与习题答案完整版(精)

上传人:xmg****18 文档编号:119925545 上传时间:2020-01-29 格式:DOC 页数:35 大小:585.50KB
返回 下载 相关 举报
南通大学DSP课程设计实验与习题答案完整版(精)_第1页
第1页 / 共35页
南通大学DSP课程设计实验与习题答案完整版(精)_第2页
第2页 / 共35页
南通大学DSP课程设计实验与习题答案完整版(精)_第3页
第3页 / 共35页
南通大学DSP课程设计实验与习题答案完整版(精)_第4页
第4页 / 共35页
南通大学DSP课程设计实验与习题答案完整版(精)_第5页
第5页 / 共35页
点击查看更多>>
资源描述

《南通大学DSP课程设计实验与习题答案完整版(精)》由会员分享,可在线阅读,更多相关《南通大学DSP课程设计实验与习题答案完整版(精)(35页珍藏版)》请在金锄头文库上搜索。

1、.word格式.南通大学DSP课程设计实验加课后习题程序实验一n=-50:50;u=(n=0;e=(0.8.n;x1=e.*u;u1=(n=4;u2=(n=5;x2=(u1-u2;u3=(n=0;u4=(n=4;x2=(u3-u4;subplot(4,1,1;stem(n,u,.subplot(4,1,2;stem(n,x1,.subplot(4,1,3;stem(n,x2,.subplot(4,1,4;stem(n,x3,.实验二n=-100:100;x1=(n=-2&(n=0&(n=0&(n1=0;u2=(n4=N4;a7=cos(0.5*pi.*n4;a8=cos(0.25*pi.*n4

2、;a9=cos(0.125*pi.*n4;x4=a7+a8+a9;y1=u1-u2;y2=hamming(N4;x41=x4.*y1;x42=x4.*y2;X41=fft(x41,N4;X42=fft(x42,N4;figure(1stem(n1,abs(X1,.figure(2subplot(2,1,1;stem(n1,abs(X21,.subplot(2,1,2;stem(n2,abs(X22,.figure(3stem(n3,abs(X3,.figure(4subplot(2,1,1;stem(n4,abs(X41,.subplot(2,1,2;stem(n4,abs(X42,.subp

3、lot(2,1,1;stem(n,abs(X41,.subplot(2,1,2;stem(n,abs(X42,.实验四dt=0.0005;t=-0.005:dt:0.005;xa=exp(-1000*abs(t;n=-500:500;w=-3*pi:0.001:3*pi;Ts1=1/20000;Ts2=1/5000;Ts3=1/1000;x1=exp(-1000*abs(n*Ts1;x2=exp(-1000*abs(n*Ts2;x3=exp(-1000*abs(n*Ts3;X1=x1*exp(-j*n*w;X2=x2*exp(-j*n*w;X3=x3*exp(-j*n*w;figure(1;p

4、lot(t,xa;figure(2subplot(3,1,1;stem(w,abs(X1subplot(3,1,2;stem(w,abs(X2subplot(3,1,3;stem(w,abs(X3实验五A=1,-3.1836,4.6223,-3.7795,1.8136,-0.48,0.0544;B=0.0004,0.0022,0.0056,0.0075,0.0056,0.0022,0.0004;figure(1;H,w=freqz(B,A;plot(w,abs(H,figure(2;h=impz(B,A;stem(h,.;figure(3;zplane(B,A;z=roots(Bp=roots

5、(Ax=-4,-2,0,-4,-6,-4,-2,-6,-6,-4,-4,-6,-6,-2,6,12,8,0,-16,-38,-60,-84,-90,-66,-32,-4,-2,-4,8,12,12,10,6,6,4,0,0,0,0,0,-2,-2,0,0,-2,-2,-2,-2,0;figure(4;y=filter(B,A,x;stem(yA=1,-3.1836,4.6223,-3.7795,1.8136,-0.48,0.0544;B=0.0004,0.0022,0.0056,0.0075,0.0056,0.0022,0.0004;figure(1;H,w=freqz(B,A;plot(w,

6、abs(H,figure(2;h=impz(B,A;stem(h,.;figure(3;zplane(B,A;z=roots(Bp=roots(Ax=-4,-2,0,-4,-6,-4,-2,-6,-6,-4,-4,-6,-6,-2,6,12,8,0,-16,-38,-60,-84,-90,-66,-32,-4,-2,-4,8,12,12,10,6,6,4,0,0,0,0,0,-2,-2,0,0,-2,-2,-2,-2,0;figure(4;y=filter(B,A,x;subplot(2,1,1;stem(xsubplot(2,1,2;stem(y实验六Fs=5000;b,a=butter(3

7、,pi/4*Fs,s;c,d=impinvar(b,a,Fs;H,w=freqz(c,d;figure(1subplot(2,1,1plot(w/pi,abs(H;ylabel(;m,n=bilinear(b,a,Fs;M,w=freqz(m,n;subplot(2,1,2plot(w/pi,abs(M;ylabel(;grid;wp=0.4*pi;ws=0.5*pi;ap=3;as=20;N,wn=buttord(wp/pi,ws/pi,ap,as;b,a=butter(N,wn,low;figure(2freqz(b,a;n=0:47;x=1+cos(pi*n/4+cos(2*pi*n/3

8、;y=filter(b,a,x;figure(3subplot(2,1,1;plot(n,x;grid;subplot(2,1,2;plot(n,y;grid;ws=0.4*pi;wp=0.5*pi;ap=3;as=20;N,wn=buttord(wp/pi,ws/pi,ap,as;b,a=butter(N,wn,high;figure(4freqz(b,a;n=0:47;x=1+cos(pi*n/4+cos(2*pi*n/3;y=filter(b,a,x;figure(5subplot(2,1,1;plot(n,x;grid;subplot(2,1,2;plot(n,y;grid;wp=0.

9、2*pi 0.48*pi;ws=0.1*pi 0.55*pi;ap=3;as=20;N,wn=buttord(wp./pi,ws./pi,ap,as;b,a=butter(N,wn,bandpass;figure(6freqz(b,a;n=0:47;x=1+cos(pi*n/4+cos(2*pi*n/3;y=filter(b,a,x;figure(7subplot(2,1,1;plot(n,x;grid;subplot(2,1,2;plot(n,y;grid;实验七N=25;wn=0.6;b=fir1(N,wn,hamming(N+1;H,w=freqz(b,1;figure(1n=0:N;s

10、tem(b,.;gridfigure(2plot(w/pi,20*log10(abs(H;gridb2=fir1(N,wn,boxcar(N+1;H2,w=freqz(b2,1;figure(3n=0:N;stem(b2,.;gridfigure(4plot(w/pi,20*log10(abs(H2;gridb3=fir1(N,wn,blackman(N+1;H3,w=freqz(b3,1;figure(5n=0:N;stem(b3,.;gridfigure(6plot(w/pi,20*log10(abs(H3;gridN2=30;wn2=0.3 0.6;b4=fir1(N2,wn2,hamm

11、ing(N2+1;H4,w=freqz(b4,1;figure(7n=0:N;stem(b4,.;gridfigure(8plot(w/pi,20*log10(abs(H4;grid习题一n=-12:12;x=(n=-2&(n=-4&(n-4&(n=0;x02=(n=32;x0=x01-x02;x1=sin(0.25*n*pi.*x0;figure(1X1=dtft(x1,n,w;subplot(2,1,1;plot(w,abs(X1;subplot(2,1,2;plot(w,angle(X1;x2=sin(0.25.*n1*pi;figure(2X2=fft(x2,N1;subplot(2,1,1;stem(n1,abs(X2;subplot(2,1,2;stem(n1,angle(X2;figure(3X3=fft(x3,N2;subplot(2,1,1;stem(n2,abs(X3;subplot(2,1

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号