Fourier transform in matlab.

Thread Starter

Vanush

Joined Apr 19, 2008
46
hey, i'm trying to do this question in matlab

Signals f1(t) = rect(10^4 * t) and f2(t) = dirac(t) are applied to the inputs of the ideal low pass filters H1(W) = rect(w/40000*pi) and H2(w) = rect(w/20000*pi). The outputs y1(t) and y2(t) of these filters are mulitplied to obtain the signal y(t) = y1(t)*y2(t). Find the output y(t)

so here's my code

clear all;
syms t; syms w;
f1 = heaviside(t + ((1/10^4)/2)) - heaviside(t - ((1/10^4)/2));
f2 = dirac(t);
h1 = heaviside(w + 20000*pi) - heaviside(w - 20000*pi);
h2 = heaviside(w + 10000*pi) - heaviside(w - 10000*pi);

y1 = ifourier(fourier(f1)*h1)
y2 = ifourier(fourier(f2)*h2)

y = y1*y2


but it doesnt work, because the out y is all crazy and has Ei functions which i cant seem to plot.
 
Top