Vous êtes sur la page 1sur 3

décalage temporel vers la droite

clear all
clc
close all
% 4A décalage
n=-10:10;
delta=[zeros(1,10),ones(1,11)];
figure(5);
subplot(3,1,1);
stem(n,delta);
grid on
axis([-15 15 -1.5 1.5]);
xlabel('n');
ylabel('amplitude');
subplot(3,1,2);
deltam2=[delta(1:length(delta))];
stem(n+2,deltam2);%décalage temporel vers la droite
grid on
axis([-15 15 -1.5 1.5]);
xlabel('n');
ylabel('amplitude');
subplot(3,1,3);
deltap2=[delta(1:length(delta))];
stem(n-2,deltap2);%décalage temporel vers la gauche
grid on
axis([-15 15 -1.5 1.5]);
xlabel('n');
ylabel('amplitude');

1
amplitude

0
-1
-15 -10 -5 0 5 10 15
n

1
amplitude

0
-1
-15 -10 -5 0 5 10 15
n

1
amplitude

0
-1
-15 -10 -5 0 5 10 15
n

[Texte] Page 1
décalage temporel vers la droite

clear all
clc
close all
% 4B
n=-10:10;
u=[zeros(1,10),ones(1,11)];
x=exp(0.2*n).*u;
figure(6);
subplot(2,1,1);
stem(n,x);
grid on
axis([-10 10 -15 15]);
xlabel('n');
ylabel('amplitude');
subplot(2,1,2);
x1=x(length(x):-1:1);
stem(n,x1);
grid on
axis([-10 10 -15 15]);
title('x[-n]')
xlabel('n');
ylabel('amplitude');

10
amplitude

-10

-10 -8 -6 -4 -2 0 2 4 6 8 10
n
x[-n]

10
amplitude

-10

-10 -8 -6 -4 -2 0 2 4 6 8 10
n

[Texte] Page 2
décalage temporel vers la droite

clear all
clc
close all
% 5 manipulation des séquences numérique:générer et tracer les
séquences
% suivantes
% x1[n]=2x[n-5]-3x[n+4]
% x2[n]=x[3-n]-x[n]x[n-2]
x=[1 2 3 4 5 6 7 6 5 4 3 2 1];
x_n_5=[zeros(1,5),x];
x_n_3=[-x,zeros(1,3)];
x_n_2=[zeros(1,2),x];
x_n_4=[x,zeros(1,4)];
%vecteur temps
n1=0:length(x)-1;
n2=0:length(x_n_5)-1;
n3=-3:length(x_n_3)-4;
n4=0:length(x_n_2)-1;
n5=-4:length(x_n_4)-5;
figure(1)
subplot(5,1,1)
stem(n1,x);title('x');grid on
subplot(5,1,2)
stem(n2,x_n_5);title('retard n-5');grid on
subplot(5,1,3)
stem(n3,x_n_3);title('retard -n+3');grid on
subplot(5,1,4)
stem(n4,x_n_2);title('retard n-2');grid on
subplot(5,1,5)
stem(n5,x_n_4);title('retard n+4');grid on

x
10
5
0
0 2 4 6 8 10 12
retard n-5
10
5
0
0 2 4 6 8 10 12 14 16 18
retard -n+3
0
-5
-10
-4 -2 0 2 4 6 8 10 12
retard n-2
10
5
0
0 2 4 6 8 10 12 14
retard n+4
10
5
0
-4 -2 0 2 4 6 8 10 12

[Texte] Page 3

Vous aimerez peut-être aussi