测试技术大作业.docVIP

  • 299
  • 0
  • 约4.29千字
  • 约 14页
  • 2021-04-09 发布于广东
  • 举报
南京航空航天大学 研究生实验报告 课程名称: 测试技术与数字信号处理 学生姓名: 壬浴 学生学号: SZ1405048 指导教师: 刘壮 2015年6月11日 1、A finite-duration sequence of length L is given as x(n)=| 】? - n - - 1 10, otherwise Determine the N-point DFT of this sequence for NL using MATLAB. (L=12, N=120). 解: —MATLAB 程序: x=[l 11111111111]; X=ffi(x,120); stcm(abs(X)) —实验结果: stem(abs(X32)) title(*32 stem(abs(X32)) title(*32 点); X64=ffi(x,64); figure ⑶ stem(abs(X64)) title(*64 点); 2、x(n)=R6(N), i.e. x(n)=u(n)-u(n-6), Determine the 8, 32 and 64-point FFT using MATLAB. 解: —MATLAB 程序: x=[l 11111]; X8=fft(x,8); flgurc(l) stem(abs(X8)) title? 点J; X32=fft(x,32); figure(2) —实验结果: 8点 32 64点 3、Determine a FIR lowpass filter with N=21 by rectangular and Hamming window using MATLAB. The passband edge frequency is 0.25兀. 解: —MATLAB 程序: figure(l) wl=boxcar(22); bl=firl(21,0.25,wl); freqz(b 1,1) titlc(,21点矩阵窗J; figure(2) w2=hamming(22); b2=fir 1(21,0.25,w2); freqz(b2,l) titlc(:21 点 Hamming 窗J; 5001 02 03 04 05 06 07 08 09Normalized Frequency (xi racVtample) 50 01 02 03 04 05 06 07 08 09 Normalized Frequency (xi racVtample) 0-50 (8P)ap2c6es 02 03 04 05 06 07 08 09 1 Normihzed Frequency (?i rad/samplt) bp) 01 02 03 04 05 06 07 08 09 Normalized Frequency (xi rad/sample) (S8268P) as-2d 02 03 04 05 06 07 08 09 Nonnabzed Frequency (xi nd/sample) -600 (??e?p) 4 Determine a FIR lowpass filter with N=8 and 12 by rectangular window and frequency-sampling method using MATLAB? The passband edge frequency is 0.4tu. 解:—MATLAB 解: —MATLAB 程序: figure(l) N=8; m=0:N/2; Wm=2*pi*m./N; Ad=[Wm=0.4*pi]; Hd=Ad.*exp(-j*0.5*N*Wm); Hd=[Hd conj(fliplr(Hd(2:N/2)))]; h=rcal(iftt(Hd)); w=linspace(0,pi, 1000); H=freqz(h,[l],w); plot(w/pi,20*log 10(abs(H))); titlefS点频率采样); figure(2) wl=boxcar(N+l); bl=firl(N,0.4,wl); freqz(b 1,1) title?点矩阵窗); figure(3) N=12; m=0:N/2; Wm=2*pi*m./N; Ad=[Wm=0.4*pi]; Hd=Ad.*exp(?j*0.5*N*Wm); Hd=[Hd conj(fliplr(Hd(2:N/2)))]; h=rcal(iffi(Hd)); w=linspace(0,pi, 1000); H=freqz(h,[l],w); plot(w/pi,20*log 10(abs(H))); titleC12点频率采样); figurc(4) wl

文档评论(0)

1亿VIP精品文档

相关文档