Professional Documents
Culture Documents
Tp-2
Tp-2
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);
figure (2)
n1=lenghth(x);
f1=linspace(-1/(2*te),
1/(2*te),n1);
x1=ffshift(fft(x)*te);
figure (3)
figure (3)
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)
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)