信号实验结果.docVIP

  • 3
  • 0
  • 约1.39千字
  • 约 8页
  • 2018-03-03 发布于河南
  • 举报
信号实验结果

汉明:A=1,B1 A=input(输入A的值:); B=input(输入B的值:); N=50; L=512; f1=100;f2=120;fs=600; T=1/fs; ws=2*pi*fs; t=(0:N-1)*T; x=A*cos(2*pi*f1*t)+B*cos(2*pi*f2*t); wh=(hamming(N));x=x.*wh; X=fftshift(fft(x,L)); w=(-ws/2+(0:L-1)*ws/L)/(2*pi); plot(w,abs(X));xlabel(频率/Hz);ylabel(幅度谱) A=1,B=0.2 矩形窗;A=1,B=1 A=input(输入A的值:); B=input(输入B的值:); N=50; L=512; f1=100;f2=120;fs=600; T=1/fs; ws=2*pi*fs; t=(0:N-1)*T; x=A*cos(2*pi*f1*t)+B*cos(2*pi*f2*t); wh=((N));x=x.*wh; X=fftshift(fft(x,L)); w=(-ws/2+(0:L-1)*ws/L)/(2*pi); plot(w,abs(X));xlabel(频率/Hz);ylabel(幅度谱) A=1B=0.2 Blackman: A=input(输入A的值:); B=input(输入B的值:); N=50;

文档评论(0)

1亿VIP精品文档

相关文档