Professional Documents
Culture Documents
Curso
Telecomunicaciones.
Profesor :
EAP
Ing. Electrnica
Integrante
Cdigo
I.
II.
OBJETIVO:
Reforzar los conceptos tericos sobre convolucin, comprender las
limitaciones del ordenador para trabajar con las seales y su
convolucin, comparas los resultados del ordenador con los analticos.
FOTOS:
III.
PROCEDIMIENTO:
1. en el programa de matlab ingresar al men File-New-M-File. Aqu
crearemos la funcin myconv.m
2. digitar en el editor lo siguiente:
function [y,X] = myconv(x,h)
%Esta funcin evala la convolucin de dos funciones finitas
x=x(:);
h=h(:);
nx=length(x);
nh=length(h);
ny=nx+nh-1;
X=zeros(nh,ny)';
for i=1:nh
X((1:nx)+(i-1),i)=x;
end
y=X*h;
y=y(1:1:ny);
y=y/max(abs(y));
Solucin
Para generar el pulso rectangular h(t) lo aremos como en el
ejercicio anterior, mientras que para generar la funcin triangular
x(t) lo haremos de la siguiente manera
p3=find(t==-2);
p4=find(t==0);
p5=find(t==2);
x=zeros(1,L);
x(p3:p4)=t(p3:p4)/2+1;
x(p4:p5)=-t(p4:p5)/2+1;
figure(4)
plot(t,x)
h=zeros(1,L);
h(p4:p5)=1;
figure(5)
plot(t,h)
y=myconv(h,x);
figure(6)
plot(w,y)
t
3
x ( t )= e 2 .u (t)
2
y=myconv(h,x);
figure(13)
plot(w,y)