clc,close,close all
syms t w
f1 = cos(t);
F1=fourier(f1)
f2=dirac(t);
F2=fourier(f2)
f3=heaviside(t);
F3=fourier(f3)
f4=exp(-2*abs(t));
F4=fourier(f4)
x=[-10:0.1:10]+eps;
F5=subs(F4,w,x);
figure,plot(x,F5);hold on;
F6=2/(i*w);
f6=ifourier(F6)
y=[-10:0.1:10]+eps;
f7=subs(f6,t,y);
figure,plot(y,f7);
报错
怎么能让第二个时域图输出来呢