You are on page 1of 4

TP 2 : transformer de fourrier

But :

Travail demandé:
Clear all
close all
Clc
a=1;
Te=0.01;
T=-5:te:5;
X=exp(-a*abs(t));
figure(1) figure (1)
Plot(t,x);

*représentation fréquentielles :méthode formelle


fe=0.01; f=-3: fe:3;
xf=2*a./(a.^2+(2*pi*f). ^2);
figure (2)
plot (f, xf)

figure (2)

n1=lenghth(x);
f1=linspace(-1/(2*te),
1/(2*te),n1);
x1=ffshift(fft(x)*te);
figure (3)

figure (3)

plot (f1, abs(x1)


axis ([-3 3 0 2])
figure (4)
hold on
plot (f, xf,’r');
plot (f1, abs(x1),'6');
axis ([-3 3 0 2])
Hold off

Figure (4)
n2=length(x1)-1:
Borne=(Te*n2)/2;
T2=-borne :Te :borne;
X2=abs(ifft(×1)/Te) ;
Figure (5)
hold on
Plot (t2, x,'r ');
Plot (t2, x2, 'b--') figure (5)

Axis (-borne borne 0 1)

F0=5;
Y=x.*exp(2*¡*pi^F0*t)
n3=length(y);
F3=linspace(-1/(2*Te),1/(2*Te),n3) ;
Y=fftshift(fft(y)*Te) ;
figure (6)
plot (f3, abs(y),'r');
hold on
plot (f1, abs(x1), 'b ');
figure (7)
r=real(y);
i=imag(y);
a1=abs(v);
hold on
plot (t, x,’r'); figure (6)
hold on
plot (t, i, 'b');
hold on
plot (t, a1, 'g');

figure (7)

Compaore Florian Nana Thalès


Savadogo Samira

You might also like