- 33
- 0
- 约3.51千字
- 约 10页
- 2021-09-08 发布于河北
- 举报
— PAGE \* Arabic 1 —
长沙理工大学数字信号处理实验三为下届学妹做贡献
3-1 t=0:0.001:1; x=sin(2*pi*100*t)+sin(2*pi*200*t)+1.5*rand(1,length(t)); subplot(2,1,1); plot(x(1:50)); y=fft(x,512); f=1000*(0:256)/512; subplot(2,1,2); plot(f,y(1:257)); 5 10 15 20 25 30 35 40 45 50 -2-1012 3050100150200250300350400450500 -200 200 400 3-2 N=input(输入序列的长度=); M=input(输入离散傅立叶变换长度=); f1=20; f2=20.5; f3=40; fs=100; t=0:1:N-1; x=sin(2*t*pi*f1/fs)+sin(2*t*pi*f2/fs)+sin(2*t*pi*f3/fs); X=fft(x,M)
原创力文档

文档评论(0)