Está en la página 1de 1

clear all

close all
clc
n=-30:30;
%Universidad Nacional de Colombia
%Facultad de Ingenieria
%Seales y sistemas subgrupo 1
%____________________________________________
%Convolucion discreta
alfa=0.5;
beta=2;
gama=1;
%Funcin u[n]
un=(n>=0)
unn=(n<=0)
% Seal x[n]
xn=((alfa.^n).*un) + ((beta.^n).*(unn));
% Respuesta al impulso h[n]
hn=(gama.^n).*un;
% Convolucin y[n]=x[n]*h[n]
yn=conv(xn,hn);
figure, subplot(3,1,1), stem(n,xn,'r'), xlabel('n'),title('Seal x[n]');
subplot(3,1,2), stem(n,hn), xlabel('n'),title('Respuesta al impulso
h[n]');
subplot(3,1,3), stem(n,yn(26:86)), xlabel('n'),title('Convolucin
y[n]=x[n]*h[n]');

También podría gustarte