You are on page 1of 10

P1) Generar la siguiente seal peridica en Matlab y graficarla.

A la grfica se debe
aadir la leyenda, las etiquetas de cada variable y el ttulo de la grfica.



( +)
() = ( ), () =
=

Solucin

Trabajaremos primero en la sumatoria.

= 2, () = ( 16) = 16

= 1, () = ( 8) = 8

= 0, () =

= 1, () = ( + 8) = + 8

= 2, () = ( + 16) = + 16

Podemos notar que al hacer la sumatoria ciertas partes se eliminaran, as podramos decir que hay
A sumandos, entonces podramos obtener ()

() =

P2) a) Escribir una funcin para generar las seal (). Deben aceptar como argumento la
variable independiente y debe verificar que el intervalo sea mayor o igual que el intervalo de
().
b) Usando las funciones anteriores, graficar las seales () = ( + ).

P3) Para la seal () = ( ), encuentre:

a) La potencia instantnea y la potencia promedio.


b) La energa.
c) La seal (), es una seal de energa o de potencia?

Solucin

Analicemos la seal () ; gracias a ( ) podemos decir que para > 0 la seal es 0.


, 0
() = {
0 , > 0

Hallaremos la potencia promedio, por definicin es:


1
= lim |()|2
2

0
1
= lim ( )2
2

0
1
= lim 2
2

1 1 2
= lim
2 2
= 0
Hallaremos la Energa, por definicin es:

= lim |()|2


0

= lim ( )2


0

= lim 2

1 2
= lim
2
1
=
2
Ya que para la seal () tememos que:

Si la seal cumple lo siguiente

0<< =0
La seal es de energa finita.

Con lo obtenido anteriormente


1
= 2 = 0 podemos afirmar que la seal es de Energa Finita

P4) Para las siguientes seales, () = () = determinar:

a) La expresin analtica z1(t) = ()(), para = = .


b) La expresin analtica p1(t) = ()(), para = = . Graficarla usando Matlab.
c) Obtener la convolucin numrica de (a), (). Graficar () (). Indique el cdigo
usado.
d) Obtener la convolucin numrica de (b), (). Graficar () (). Indique el cdigo
usado.
e) Comente sus resultados

Solucin

() = exp( )
() = exp( )

() = () () = ()( ) = exp( ) exp( ( ))
0 0

a)

Para

=3 =5

3 + 5
1() = () () = exp(3 ) exp(5 ( )) =
0 2

b)
Para

==2

1() = () () = exp(2 ) exp(2 ( )) = 2
0

Ahora la graficaremos en Matlab, el cdigo es el siguiente:


t=0:0.001:5;
p=t.*exp(2*t);
plot(t,p);
grid on
xlabel('Tiempo');
ylabel('p');
title('Convolucion');
c) Usaremos el cdigo proporcionado por el profesor

function convolucion(x,x_start,h,h_start,delta);
expand=0.1;
total_length=length(x)+length(h)-1;
t=x_start+h_start+delta*(0:total_length-1);
t_min=min([x_start h_start t]);
t_max=max([x_start+delta*length(x) h_start+delta*length(h) t]);

y=delta*conv(x,h);
y_min=min([x h y]);
y_max=max([x h y]);

tmin=t_min-expand*(t_max-t_min);
tmax=t_max+expand*(t_max-t_min);
ymin=y_min-expand*(y_max-y_min);
ymax=y_max+expand*(y_max-y_min);

x_time=x_start+delta*(0:length(x)-1);
h_time=h_start+delta*(0:length(h)-1);
p=t.*exp(t);

subplot(3,1,1)
plot([tmin t(1)-delta t tmax],[0 0 y 0],'b')
grid
title('Convolucion de x(t) y y(t)')
ylabel('Salida, z2(t)')

subplot(3,1,2)
plot([tmin x_time(1)-delta x_time x_time(length(x_time))+delta tmax],[0 0
x 0 0],'r')
grid
ylabel(' x(t)')

subplot(3,1,3)
plot([tmin h_time(1)-delta h_time h_time(length(h_time))+delta tmax],[0 0
h 0 0],'g')
grid
xlabel('Tiempo (segundos)')
ylabel(' y(t)')

y luego creamos un script

t=0:0.001:1; %limitamos t para poder observar mejor la grfica de la


convolucion
x2=exp(3*t);
y2=exp(5*t);

convolucion(x2,0,y2,0,0.001)

Y la grfica de z1 es :

t=0:0.001:2;
z1=(-exp(3*t)+exp(5*t))/2;
plot(t,z1);
grid on
xlabel('Tiempo');
ylabel('z1');
title('Convolucion');
d)

Usaremos el mismo cdigo y en el script cambiaremos los exponenciales


function convolucion(x,x_start,h,h_start,delta);
expand=0.1;
total_length=length(x)+length(h)-1;
t=x_start+h_start+delta*(0:total_length-1);
t_min=min([x_start h_start t]);
t_max=max([x_start+delta*length(x) h_start+delta*length(h) t]);

y=delta*conv(x,h);
y_min=min([x h y]);
y_max=max([x h y]);

tmin=t_min-expand*(t_max-t_min);
tmax=t_max+expand*(t_max-t_min);
ymin=y_min-expand*(y_max-y_min);
ymax=y_max+expand*(y_max-y_min);

x_time=x_start+delta*(0:length(x)-1);
h_time=h_start+delta*(0:length(h)-1);
p=t.*exp(t);

subplot(3,1,1)
plot([tmin t(1)-delta t tmax],[0 0 y 0],'b')
grid
title('Convolucion de x(t) y y(t)')
ylabel('Salida, p2(t)')

subplot(3,1,2)
plot([tmin x_time(1)-delta x_time x_time(length(x_time))+delta tmax],[0 0
x 0 0],'r')
grid
ylabel(' x(t)')
subplot(3,1,3)
plot([tmin h_time(1)-delta h_time h_time(length(h_time))+delta tmax],[0 0
h 0 0],'g')
grid
xlabel('Tiempo (segundos)')
ylabel(' y(t)')

Creamos de nuevo un script

t=0:0.001:1; %limitamos t para poder observar mejor la grfica de la


convolucion
x2=exp(2*t);
y2=exp(2*t);

convolucion(x2,0,y2,0,0.001)

Y la grfica de p1 es

t=0:0.001:2;
p1=t*exp(2*t);
plot(t,p1);
grid on
xlabel('Tiempo');
ylabel('p1');
title('Convolucion');
P5) Sea la funcin de transferencia en variable compleja s de un sistema lineal e invariante en
el tiempo
+ +
() =
+ + +

a) Para [. , ] y = , () = ()| = , determinar las


expresiones analticas y valores de |()| = |()| y () =
({()}/{()}).
b) Dibujar, usando funciones de Matlab explicados en clase (con eje horizontal de
frecuencias (logartmico), las grficas de |()| y () superpuestas en una
misma grfica y con un eje vertical izquierdo para |()| y un eje vertical derecho
para (). Para cada grfica se debe aadir la leyenda, las etiquetas de cada eje y el
ttulo de la grfica. Use funciones de Matlab para hallar los valores mximos y
mnimos de |()| y ().

Solucin
a) Sabemos que :
=
Entonces, reemplazando en ()
()2 + 6() + 2
() =
()3 + 6()2 + 4() + 8

2 + 6 + 2
() =
3 6 2 + 4 + 8
Multiplicamos y dividimos por su conjugado

( 2 + 2) + (6) (6 2 + 8) ( 3 + 4)
() =
(6 2 + 8) + ( 3 + 4) (6 2 + 8) ( 3 + 4)

6 4 + 6 3 + 16 2 12 + 16 5 6 3 + 36 2 40
() = ( )
6 8 4 + 52 2 96 + 64 6 8 4 + 52 2 96 + 64

R= parte real de ()
I= parte imaginaria de ()

6 4 + 6 3 + 16 2 12 + 16
=
6 8 4 + 52 2 96 + 64

5 6 3 + 36 2 40
=
6 8 4 + 52 2 96 + 64

|()| = 2 + 2

4 + 32 2 + 4
|()| = 6
8 4 + 52 2 96 + 64

|()| = 20 log(|()|)

4 + 32 2 + 4
|()| = 10 log ( )
6 8 4 + 52 2 96 + 64


() = 1 ( )

5 6 3 + 36 2 40
() = 1 ( 6
8 4 + 52 2 96 + 64 )
6 + 6 3 + 16 2 12 + 16
4

6 8 4 + 52 2 96 + 64

5 6 3 + 36 2 40
() = 1 ( )
6 4 + 6 3 + 16 2 12 + 16
=2 |()| ()
0.01 0.0628 11.4919 8.8045
0.1 0.628 1.3774 38.7713
1 6.28 12.5205 -52.4119
10 62.8 35.9152 -84.6251
100 628 55.9587 -89.4535
1 6.28 75.9591 -89.9453
10 62.8 95.9592 -89.99
100 628 115.959 -89.99
1 6.28 135.959 -89.99
10 62.8 155.959 -89.99
100 628 175.959 -89.99

b)

You might also like