matlab做FFT频谱分析的问题t=0:0.1:10y=exp(-t)subplot(311)stem(t,y);grid onz=fft(y)subplot(312)stem(t,abs(z)/10);hold on;x=sqrt(1+t.*t)a=1./xsubplot(312)stem(t,a)hold onsubplot(313)stem(t,angle(z))第二个图像时FFT的图像和理论值得

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 23:50:51

matlab做FFT频谱分析的问题t=0:0.1:10y=exp(-t)subplot(311)stem(t,y);grid onz=fft(y)subplot(312)stem(t,abs(z)/10);hold on;x=sqrt(1+t.*t)a=1./xsubplot(312)stem(t,a)hold onsubplot(313)stem(t,angle(z))第二个图像时FFT的图像和理论值得
matlab做FFT频谱分析的问题
t=0:0.1:10
y=exp(-t)
subplot(311)
stem(t,y);grid on
z=fft(y)
subplot(312)
stem(t,abs(z)/10);hold on;
x=sqrt(1+t.*t)
a=1./x
subplot(312)
stem(t,a)
hold on
subplot(313)
stem(t,angle(z))
第二个图像时FFT的图像和理论值得叠加,为什么会差的这么远?如果不对,应该怎么改?

matlab做FFT频谱分析的问题t=0:0.1:10y=exp(-t)subplot(311)stem(t,y);grid onz=fft(y)subplot(312)stem(t,abs(z)/10);hold on;x=sqrt(1+t.*t)a=1./xsubplot(312)stem(t,a)hold onsubplot(313)stem(t,angle(z))第二个图像时FFT的图像和理论值得
做频谱图,t的长度和z的长度相等吗?做图时就不应该以t为横轴,应该为你的FFT点数一样的频率或相位.