MANUEL
TAREA 2
1. Programar en Matlab la convolucin de las siguientes seales, graficar
adems las seales de entrada as como la salida:
clear all
clc
t1=-2:0.01:2;
x=ustep(t1);
plot(t1,x,'LineWidth',4)
xlabel('variable t');
ylabel('x(t)');
axis([-2.5 2.5 -0.5 1.5]);
grid on;
figure
t2=-4:0.01:4;
h=2*ustep(t2-2);
plot(t2,h,'LineWidth',4)
xlabel('variable t');
ylabel('h(t)');
axis([-4.5 4.5 -0.5 2.5]);
grid on;
figure
v=conv(x,h);
plot(v,'LineWidth',4)
title('convolucion');
grid on;
PROCESAMIENTO DE SEALES
MANUEL
clear all
clc
t1=-3:0.01:3;
x=ustep(t1+2).*ustep(2-t1);
plot(t1,x,'LineWidth',4);
xlabel('variable t');
ylabel('x(t)');
axis([-3 3 -0.5 1.5])
grid on;
figure
t2=-1:0.01:4;
h=uramp(t2).*ustep(3-t2).*ustep(t2);
plot(t2,h,'LineWidth',4)
xlabel('variable t');
ylabel('h(t)');
axis([-0.5 3.5 -0.5 3.5])
grid on;
figure
v=conv(x,h);
plot(v,'LineWidth',4)
PROCESAMIENTO DE SEALES
MANUEL
clear all
clc
t1=-5:0.01:0;
x=exp(t1).*ustep(-t1);
plot(t1,x,'LineWidth',4);
xlabel('variable t');
ylabel('x(t)');
axis([-4 0.5 -0.5 1.5])
grid on;
figure
t2=-1:0.01:3;
h=[2*ustep(t2)]-ustep(t2-1)-ustep(t2-2);
plot(t2,h,'LineWidth',4)
xlabel('variable t');
ylabel('h(t)');
axis([-0.5 3.5 -0.5 2.5])
grid on;
figure
v=conv(x,h);
plot(v,'LineWidth',4)