Professional Documents
Culture Documents
INTRODUCCION
f ()g(t )d
( f g ) ( t ) =
Qu es la convolucin?
f [ m ]g [ m ] = f [ n ] g [mn]
n
Propiedades de la convolucin
f g=gf
Asociatividad
f ( gh )=( fg )h
Figura 1.0. Proceso de convolucion entre dos seales
(funciones) rectangulares.
.
Distributividad
f ( g+h )=f g+ f h
Asociatividad con multiplicacin escalar
a ( f g )= ( af )g=f (ag)
a complejo o real .
Regla de derivacin
)= f g=fg
( f g
DESARROLLO
Teorema de convolucin
F ( fg ) =F ( f )F(g)
clc
clear
close all
h=[1,2,3,3,3,3];
x=[4,3,2,1,1,1];
Lh=length(h);
Lx=length(x);
Ly=Lh+Lx-1;
y=zeros(1,Ly);
for n=0:Ly-1
y(n+1)=0;
for i=0:Lh-1
for j=0:Lx-1
if(i+j == n) y(n+1) =
y(n+1) + h(i+1)*x(j+1); end;
end
end
end
figure(1)
stem(y)
grid on
f ( t ) ( t )=f (t )
f ( t ) ( tt 0 ) =f ( tt 0 )
f ( tt 1 ) ( tt 0 )=f ( tt 0 t 1 )
Matriz de convolucin
A veces es til ver a la convolucin como un producto
matricial. Sea
x una funcin discreta de m
elementos, sea
h un sistema discreto de n
elementos, y sea y
la convolucin de ambos, de
elementos: y=hx . Entonces se
2 n1
puede definir una matriz
(la matriz de
A
convolucin, que es una matriz de Toeplitz) tal que
T
y =xA :
Ejemplo:
Sea x=[ 4 5 1 7 ] y sea h=[1 2 3 1],
entonces la matriz de convolucin ser la
siguiente:
10< n<10
5< n<5
%a)
figure
b)
x=-10:1:10;
x [ n ]= [ n ] [ n5 ] ,
y [ n ] = [ n5 ] ,
xn=heaviside(x) - heaviside(x-5);
subplot(3,1,1);
stem(x,xn);
title('X[n]')
10< n<10
5< n<5
%b)
figure
x=-10:1:10;
xn=heaviside(x)-heaviside(x-5);
subplot(3,1,1);
stem(x,xn);
title('X[n]')
y=-5:1:5;
yn=dirac(y);
subplot(3,1,2);
stem(y,yn);
title('Y[n]')
y=-5:1:10;
yn=dirac(y-5);
subplot(3,1,2);
stem(y,yn);
title('Y[n]')
z=conv(xn,yn);
subplot(3,1,3);
stem(z);
title('conv(X,Y)')
z=conv(xn,yn);
subplot(3,1,3);
stem(z);
title('conv(X,Y)')
c)
x [ n ]= [ n ] [ n5 ] , 10< n<10
y [ n ] = [ n ] + [ n10 ] , 5< n<5
%c)
figure
x=-10:1:10;
xn=heaviside(x)-heaviside(x-5);
subplot(3,1,1);
stem(x,xn);
title('X[n]')
x [ n ]= [ 3,11,7,0,1,4,2 ] ,
3 n 3
h [ n ] =[ 2,3,0,5,2,1 ] ,
1 n 4
y [ n ] =[ 6,31,47,6,51,5,41,18223,8,2 ]
y=-5:1:15;
yn=dirac(y)+dirac(y-10);
subplot(3,1,2);
stem(y,yn);
title('Y[n]')
%3.clear all
close all
clc
x=[3,11,7,0,-1,4,2,0];
h=[0,0,2,3,0,-5,2,1];
y=conv(x,h);subplot(1,1,1);
stem(y);
z=conv(xn,yn);
subplot(3,1,3);
stem(z);
title('conv(X,Y)')
grid on
h [ n ] =0.9 u [ n ]
clc
clear all
close all
n=[-10:1:10];
xn=heaviside(n)-heaviside(n10);
subplot(3,1,1);
stem(xn);
hn=(0.9.^n).*heaviside(n);
subplot(2,1,1);
stem(xn);
hn=(0.9.^n).*heaviside(n);
subplot(2,1,2);
stem(hn);
%4.
close all
clear all
clc
n=[0:1:30];
a=0.7;
x=a.^n;
stem(x);
5.
y [ n ] =x [ n ]x [n1]
x [ n ]=5 ( u [ n ] u [ n20 ] )
x [ n ]=u [ n ] u[n10 ]
, pulso rectangular.
x [ n ]=sin
, pulso sinusoidal.
%Pulso rectangular.
clear all
close all
clc
n=[-15:1:35];
xn=5*[heaviside(n)-heaviside(n-20)];
stem(xn)
title('Pulso rectangular')
%Pulso sinusoidal.
figure
n=[-15:1:50];
xn=sin(pi*n/25).*[heaviside(n)heaviside(n-100)];
stem(n,xn)
title('Pulso sinusoidal')
%Pulso triangular.
figure
n=[-5,1:15];
CONCLUSIONES
xn=n.*[heaviside(n)-heaviside(n-10)]
+heaviside(-n+20).*[heaviside(n-10)heaviside(n-20)];
stem(n,xn)
title('Pulso triangular')
1.
2.
.
3.