clear all;
t = linspace(-pi,pi,100);
dt = t(2)-t(1);
fs = 1/dt;
w = linspace(0,fs,100);

y = sin(t) + 2*sin(3*t);
g = exp(-w) .* fft(y);
h = ifft(g);
plot(real(h));

