Está en la página 1de 10

UNIVERSIDAD NACIONAL

MAYOR
DE SAN MARCOS
Decana de América

FACULTAD DE ING. ELECTRÓNICA Y ELECTRICA

SESIÓN 3 :

CONVOLUCIÓN

 ALUMNO:

Huaracha Cruz Ivan Felipe 16190074

 PROFESOR:
Ing. Salomón Luque Gamero

 CURSO: : Lab . Señales y Sistemas

 HORARI : G5 / Martes 14 – 16 horas


O:
1. Si se tiene las siguientes funciones:

|t |
a) x 1 ( t )=1− ;−2<t <2
2

CODIGO:

t=-2:0.001:2;
x=1-(abs(t))/2;
plot(t,x);
xlim([-3 3]);
ylim([-0.5 1.5])
grid on

b) x 2 ( t )=u ( t+ 1 )−u ( t−1 )

CODIGO:

t=-2:0.001:2;
y=ustep(t+1)-ustep(t-1);
plot(t,y)
ylim([-0.5 1.5])
xlim([-2.5 2.5])
grid on

c) x 3 ( t )=δ ( t−5 )
1.5
CODIGO:

t=-6:0.01:6;
1
x=udelta(t-5);
plot(t,x);
xlim([-7 7]);
0.5
ylim([-0.5 1.5]);
grid on
0

-0.5
-6 -4 -2 0 2 4 6
d) x 4 ( t ) =sinc ( 2t );−6< t<6
1.5
CODIGO:
1

t=-6:0.01:6;
x=sinc(t/2); 0.5
plot(t,x);
xlim([-7 7]);
0
ylim([-1 1.5]);
grid on
-0.5

-1
-6 -4 -2 0 2 4 6

e) x 5 ( t )=2 t [ u ( t )−u ( t−1 ) ] 3

2.5
CODIGO:
2
t=-2:0.01:2;
1.5
x=2.*t.*(ustep(t)-ustep(t-1));
plot(t,x); 1

grid on
0.5
xlim([-3 3])
ylim([-1 3]) 0

-0.5

-1
-3 -2 -1 0 1 2 3

f)
x 6 ( t )=−2t [ u ( t +1 )−u ( t ) ] +2 t [ u ( t )−u ( t−1 ) ] 3

2.5

CODIGO: 2

1.5

t=-2:0.01:2;
1
x=-2*t.*(ustep(t+1)-ustep(t))+2.*t.*(ustep(t)-
0.5
ustep(t-1));
plot(t,x) 0

ylim([-1 3]) -0.5

xlim([-3 3]) -1
-3 -2 -1 0 1 2 3
grid on
2. Grafique cada una de las operaciones:

a) y 1 (t )=x 1 ( t )∗x1 (t )

t=-2:0.001:2;
x=1-(abs(t))/2; X1(t)
w=1-(abs(t))/2; 1.5
1
y=conv(x,w);
0.5
0
subplot(3,1,1),plot(t,x); -0.5
xlim([-3 3]); -3 -2 -1 0 1 2 3
ylim([-0.5 1.5]); X1(t)
1.5
title('X1(t)'); 1
grid on 0.5
0
subplot(3,1,2),plot(t,w); -0.5
-3 -2 -1 0 1 2 3
xlim([-3 3]);
convolucion Y1(t)
ylim([-0.5 1.5]); 2000
title('X1(t)'); 1000
grid on
0

-1000
subplot(3,1,3),plot(y); -1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
ylim([-1000 2000]);
xlim([-1000 9000]);
title('convolucion Y1(t)');
grid on

b) y 2 ( t )=x 1 ( t )∗x5 ( t)

t=-2:0.001:2;
x=1-(abs(t))/2;
w=2.*t.*(ustep(t)-ustep(t-1));
X1(t)
y=conv(x,w); 2

1
subplot(3,1,1),plot(t,x);
0
xlim([-3 3]);
-3 -2 -1 0 1 2 3
ylim([-0.5 2]);
X5(t)
title('X1(t)'); 3

grid on 2
1
0
subplot(3,1,2),plot(t,w);
-3 -2 -1 0 1 2 3
xlim([-3 3]);
convolucion Y2(t)
ylim([-0.5 3]); 2000

title('X5(t)'); 1000
grid on 0

-1000
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
subplot(3,1,3),plot(y);
ylim([-1000 2000]);
xlim([-1000 9000]);
title('convolucion Y2(t)');
grid on
c) y 3 ( t ) =x2 ( t )∗x 2(t)

t=-2:0.001:2;
x=ustep(t+1)-ustep(t-1);
w=ustep(t+1)-ustep(t-1); X2(t)
2
y=conv(x,w);
1

subplot(3,1,1),plot(t,x); 0
xlim([-3 3]); -3 -2 -1 0 1 2 3
ylim([-0.5 2]); X2(t)
title('X2(t)'); 2

grid on 1

0
subplot(3,1,2),plot(t,w);
xlim([-3 3]); -3 -2 -1 0 1 2 3
ylim([-0.5 2]); convolucion Y3(t)
title('X2(t)'); 2000

grid on 1000
0

subplot(3,1,3),plot(y); -1000
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
ylim([-1000 2500]);
xlim([-1000 9000]);
title('convolucion Y3(t)');
grid on

d) y 4 ( t )=x 3 ( t )∗x 5 (t)

t=-6:0.001:6;
x=udelta(t-5);
X3(t)
x=double(x); 2
w=2*t.*(ustep(t)-ustep(t-1));
1
y=conv(x,w);
0
subplot(3,1,1),plot(t,x); -6 -4 -2 0 2 4 6
xlim([-7 7]); X5(t)
ylim([-0.5 2]); 3

title('X3(t)'); 2

grid on 1
0

subplot(3,1,2),plot(t,w); -6 -4 -2 0 2 4 6
xlim([-6 6]); convolucion Y4(t)
2
ylim([-0.5 3]);
title('X5(t)'); 1
grid on
0
0 0.5 1 1.5 2 2.5
subplot(3,1,3),plot(y);
10 4
title('convolucion Y4(t)');
grid on

e) y 5 ( t ) =x3 ( t )∗x 4 (t)

t=-6:0.001:6;
x=udelta(t-5);
x=double(x); X3(t)
w=sinc(t/2); 2

y=conv(x,w); 1

0
subplot(3,1,1),plot(t,x);
-6 -4 -2 0 2 4 6
xlim([-7 7]);
X4(t)
ylim([-0.5 2]); 3
title('X3(t)'); 2

grid on 1
0

subplot(3,1,2),plot(t,w); -6 -4 -2 0 2 4 6
convolucion Y5(t)
xlim([-6 6]); 1
ylim([-0.5 3]);
title('X4(t)'); 0

grid on
-1
0 0.5 1 1.5 2 2.5
subplot(3,1,3),plot(y); 104
title('convolucion Y5(t)');
grid on

f) y 6 ( t ) =x3 ( t )∗x 5 (t)

t=-6:0.001:6;
x=udelta(t-5);
x=double(x);
w=2.*t.*(ustep(t)-ustep(t-1)); X3(t)
y=conv(x,w); 2

1
subplot(3,1,1),plot(t,x);
0
xlim([-7 7]);
ylim([-0.5 2]); -6 -4 -2 0 2 4 6
title('X3(t)'); X5(t)
3
grid on
2
1
subplot(3,1,2),plot(t,w);
0
xlim([-6 6]);
-6 -4 -2 0 2 4 6
ylim([-0.5 3]);
convolucion Y6(t)
title('X5(t)'); 2
grid on
1

subplot(3,1,3),plot(y);
0
title('convolucion Y6(t)'); 0 0.5 1 1.5 2 2.5
10 4
grid on

g) y 7 ( t ) =x6 ( t )∗x 6 (t)


t=-2:0.001:2;
x=-2.*t.*(ustep(t+1)-ustep(t))+2.*t.*(ustep(t)-ustep(t-1));
w=-2.*t.*(ustep(t+1)-ustep(t))+2.*t.*(ustep(t)-ustep(t-1));
y=conv(x,w);

subplot(3,1,1),plot(t,x);
X6(t)
xlim([-3 3]);
2
ylim([-0.5 2.5]);
1
title('X6(t)');
0
grid on
-3 -2 -1 0 1 2 3
X6(t)
subplot(3,1,2),plot(t,w); 2
xlim([-3 3]); 1
ylim([-0.5 2.5]); 0
title('X6(t)');
-3 -2 -1 0 1 2 3
grid on convolucion Y7(t)
3000
2000
subplot(3,1,3),plot(y); 1000
ylim([-1000 3000]); 0
xlim([-1000 9000]); -1000
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
title('convolucion Y7(t)');
grid on

h) y 8 ( t ) =x1 ( t )∗x 6 ( t )
t=-2:0.001:2;
x=1-(abs(t))/2;
w=-2.*t.*(ustep(t+1)-ustep(t))+2.*t.*(ustep(t)-ustep(t-1));
y=conv(x,w);

subplot(3,1,1),plot(t,x);
xlim([-3 3]); X1(t)
1.5
ylim([-0.5 1.5]); 1
title('X1(t)'); 0.5
grid on 0
-0.5
-3 -2 -1 0 1 2 3
subplot(3,1,2),plot(t,w); X6(t)
xlim([-3 3]); 2
ylim([-0.5 2.5]); 1
title('X6(t)'); 0
grid on -3 -2 -1 0 1 2 3
convolucion Y8(t)
2000
subplot(3,1,3),plot(y);
1000
ylim([-1000 2000]);
0

-1000
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
xlim([-1000 9000]);
title('convolucion Y8(t)');
grid on

i) y 9 ( t ) =x1 ( t )∗x 3 (t)


t=-6:0.001:6;
x=udelta(t-5);
x=double(x);
w=1-(abs(t))/2; X3(t)
2
y=conv(x,w);
1
subplot(3,1,1),plot(t,x); 0
xlim([-7 7]);
-6 -4 -2 0 2 4 6
ylim([-0.5 2]); X1(t)
title('X3(t)'); 3

grid on 2
1
0
subplot(3,1,2),plot(t,w);
-6 -4 -2 0 2 4 6
xlim([-6 6]);
convolucion Y9(t)
ylim([-0.5 3]); 2
title('X1(t)');
0
grid on
-2
subplot(3,1,3),plot(y); 0 0.5 1 1.5 2 2.5

title('convolucion Y9(t)'); 104

grid on

j) y 10 ( t )=x 2 ( t )∗x 4 (t −3)

t=-2:0.001:2;
x=ustep(t+1)-ustep(t-1);
w=sinc((t-3)/2); X2(t)
1.5
y=conv(x,w); 1
0.5
subplot(3,1,1),plot(t,x); 0
xlim([-3 3]); -0.5
-3 -2 -1 0 1 2 3
ylim([-0.5 1.5]);
X4(t)
title('X2(t)'); 1
grid on 0.5

0
subplot(3,1,2),plot(t,w);
-0.5
xlim([-3 3]); -3 -2 -1 0 1 2 3
ylim([-0.5 1]); convolucion Y10(t)
1000
title('X4(t)');
grid on 0

subplot(3,1,3),plot(y); -1000
ylim([-1000 1000]); -1000 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
xlim([-1000 9000]);
title('convolucion Y10(t)');
grid on

3. Determine y bosqueje la convolución de las siguientes dos señales.

PARA X ( t)

t=-2:0.01:4;
x=((t>=0)&(t<=1)).*(t+1)+((t>1)&(t<=2)).*(2-t)+((t<0)&(t>2)).*(0);
plot(t,x);
ylim([-0.5 2.5])
grid on
2.5

1.5

0.5

-0.5
-2 -1 0 1 2 3 4

PARA H (t)

t=-2:0.01:2;
h=ustep(t+2)+2.*ustep(t+1);
plot(t,h);
xlim([-3 3]);
ylim([0.5 3.5])
grid on

2.5

1.5

0.5

-0.5
-2 -1 0 1 2 3 4
CONVOLUCION:

t=-2:0.01:4;
x=((t>=0)&(t<=1)).*(t+1)+((t>1)&(t<=2)).*(2-t)+((t<0)&(t>2)).*(0);
t1=-2:0.01:2;
h=ustep(t1+2)+2.*ustep(t1+1);
y=conv(x,h)
plot(y)
grid on

700

600

500

400

300

200

100

0
0 200 400 600 800 1000 1200

También podría gustarte