matlab 2012a报错ft=sym('sin(pi*t)/(pi*t)');Fw=fourier(ft);subplot(211)ezplot(abs(Fw)),grid ontitle('幅度谱')phase=atan(imag(Fw)/real(Fw));subplot(212)ezplot(phase);grid ontitle('相位谱')打错了ft=sym('sin(pi*t)/(
网友回答
ft=sym('sin(pi*t)/(pi*t)');
Fw=fourier(ft);
subplot(211)
ezplot(abs(Fw))
grid on
title('幅度谱')
phase=atan(imag(Fw)/real(Fw));
subplot(212)
ezplot(phase);
grid on
title('相位谱')
%打错了ft=sym('sin(pi*t)/(pi*t)^2');
Fw=fourier(ft);
subplot(211)
ezplot(abs(Fw))
grid on
title('幅度谱')
phase=atan(imag(Fw)/real(Fw));
subplot(212)
ezplot(phase);
grid on
title('相位谱')
望采纳