matlab 2012a报错ft=sym('sin(pi*t)/(pi*t)');Fw=fourie

发布时间:2021-02-26 04:51:56

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('相位谱')
望采纳
以上问题属网友观点,不代表本站立场,仅供参考!