7.离散信号性质及应用.docVIP

  • 24
  • 0
  • 约3.32千字
  • 约 8页
  • 2017-08-10 发布于浙江
  • 举报
7.离散信号性质及应用

本次内容要求全部调用傅里叶变函数求解后与传统方式比较。 求解的傅里叶变换,并绘出其幅度谱。 解: clear all; N1=1024; t_length=40; T1=t_length/N1; t3=(0:N1-1)*T1-t_length/2; f3=sin(2*pi*(t3-1))./(pi*(t3-1)); %plot(t,f) w_length=2*pi/T1; W1=w_length/N1; F1=T1*fft(f3,N1); F1=fftshift(F1); figure w=(0:N1-1)*W1-w_length/2; subplot(211); plot(w,abs(F1)); axis([-10 10 0 1.2]); grid on; title(FFT) t1=-5; t2=5; T=t2-t1; delta_t=0.03; N=T/delta_t; t=-5:0.03:5; f=sin(2*pi*(t-1))./(pi*(t-1)); w1=-2*pi; w2=2*pi; W=w2-w1; delta_w=0.01; K=W/delta_w; w=-3*pi:0.01:3*pi; F=(T/N)*f*exp(-j*t*w); f1=abs(F); subplot(212); plot(w,f1,r); grid on; axis([-10 10 0 1.

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档