Académique Documents
Professionnel Documents
Culture Documents
EXPERIMENTATION
A) clc
clear all
close all
clear all
close all
axis([-10 10 -0.5 1.5]); %pour fixer les limites sur les axes des ordonnés et d’abscisses
3δ(t) .
δ(t + 3) .
clc
clear all
close all
t=-1:0.0001:1;
x1=rectpuls(t,0.05);
xlabel('temps(sec)');
ylabel('amplitude');
title('impulsion rectangulaire');
clear all
close all
x=zeros(1,100);
for i=41:60,x(i)=2;end;
y=zeros(1,100);
for i=31:70,y(i)=3;end;
N=100;
a=-N/2:N/2-1;
b=-N:N-2;
axis([-60 60 0 140]);title('convolution');xlabel('t');ylabel('conv(x,y)');
clc
clear all
close all
x=zeros(1,100);%
for i=41:60,x(i)=2;end;%
y=zeros(1,100);%
for i=31:70,y(i)=3;end;%
N=100;%
a=-N/2:N/2-1;%
b=-N:N-2;%
subplot(2,2,1);plot(a,x);axis([-50,50,0,2.5]);grid;%
title('premier signal');xlabel('t');ylabel('x(t)');%
subplot(2,2,2);plot(a,y);axis([-50,50,0,3.5]);grid;%
title('deuxième signal');xlabel('t');ylabel('y(t)');%
subplot(2,2,4);plot(b,conv(x,x));grid;%
axis([-60 60 0 140]);title('convolution');xlabel('t');ylabel('conv(x,x)');