南通大学DSP课程设计实验与复习题答案完整版.docxVIP

  • 1
  • 0
  • 约8.08千字
  • 约 33页
  • 2021-09-05 发布于天津
  • 举报

南通大学DSP课程设计实验与复习题答案完整版.docx

大学DSP课程设计实验加课后习题程序 实验一 n二-50:50; u=(n=0; e=(0. 8. °n; xl=e? *u; ul=(n=4; u2=(n=5; x2=(ul-u2; u3=(n=0; u4=(n=4; x2=(u3~u4; subplot(4,1,l;stem(ntu, I subplot(4,1,2;stem(n,xl「? subplot (4,1,3;stem(ntx2, I subplot (4,1,4;stem(ntx3, I 1 J 0 -40 -30 ?20 ?10 0 to 20 R 40 50 05 ? ? ? li -40 ?39 -10 0 IQ K 0 W 50 1 0€ 40 ?30 ?20 -10 0 10 20 3d 40 50 05 - 2 40 ?30 -20 0 10 20 40 50 实验二 2 2 n 二 TOO: 100; xl=(n=-2 (n2; m二(一j*0. 65. *pi*n; w二-2*pi:0? 01:2*pi; Xl=xl*exp(-j*nF *w; x=eps? m; x2=x 1. *x; X2=x2*exp(-j*n*w; x3=(n=0 (n4; X3=x3*exp(-j*n*w; figured plot(w,abs(Xl; figure (2 plot(w,abs(X2; figure(3 plot(w,abs(X3; 实验三 Nl=64; N2=64; N3=100; nl=O:Nl-l; n2=0:N2-l; n3=0:N3-l; xl=(nl=0 (nl8; Xl=fft(xl,Nl; all=cos(0. 5*pi. *nl; a21=cos(0. 25*pi. *nl; a31=cos(0. 125*pi. *nl; al2=cos(0. 5*pi. *n2; a22=cos (0. 25*pi. *n2; a32=cos(0. 125*pi. *n2; x21=all+a21+a31; x22=al2+a22+a32; X21=fft(x21,Nl; X22=fft(x22,N2; a4=cos (0. 5*p i. *n3; a5=cos (0. 25*p i? *n3; a6=cos(0. 125*pi. *n3; x3=a4+a5+a6; X3=fft(x3,N3 N4=250; n4=0:N4-l; ul=(n4=0; u2=(n4=N4; a7=cos(0. 5*p i. *n4; a8=cos (0. 25*pi. *n4; a9=cos(0. 125*pi. *n4; x4二a7+a8+a9; yl=ul-u2; 10 20 30 40 SO GO 70 10 20 30 40 SO GO 70 y2=hamming(N4; x41=x4. *yl; x42=x4. *y2r: X41=fft(x41,N4; X42=fft(x42,N4; figured stem(nlrabs(Xlf I figure(2 subplot (2,ltl;stem(nltabs(X21r F? subplot (2t1,2;stem(n2,abs(X22, figure(3 stem(n3tabs(X3f I figure(4 subplot(2,1,1;stem(n4,abs(X41, \ subplot (2,1,2;stem(n4fabs(X42,F. subplot (2t1,1;stem(ntabs(X41t I subplot(2f1,2;stem(n,abs(X42,r? 1 fll汕皿帕血11 ? I 30 20 10 °C 10 20 K 40 50 6 D 90 20 iO - 10 20 30 40 60 B) 70 GO £0 0 30 20 1C nib 1 9 ? a LI ? °C \a\ 10 20 X) 4G 60 GO 70 eo ?90 100 100 §0 I 1 N ll uc 50 ICD 200 an 60 r ? 40 20 c - r 100 L 200 2S0 实验四 dt=0. 0005; t=-0. 005: dt: 0. 005; xa=exp(-1000*abs (t; n二一500:500; w二-3*pi:0? 001:3*pi; Tsl=l/20000; Ts2=l/5000; Ts3=l/1000; xl=exp (-1000*abs(n*Tsl; x2=exp(-1000*abs(n*Ts2; x3=exp(-1000*abs(n*Ts3; Xl=xl*exp(-j*nr*w; X2=x2*exp(-j*n*w; X3=x3*exp(-j*n*w;

文档评论(0)

1亿VIP精品文档

相关文档