Professional Documents
Culture Documents
I.
OBJETIVOS
Implementar el muestreo con diferentes frecuencias de muestreo
Obtener periodo, mdulo y fase de diferentes seales
II.
ACTIVIDADES
.
/
1. Sea ( )
imaginaria, identifique el periodo
name.m
clc; hold off;
n= -25:25 ;
x = exp(pi.*n/3+pi/3);
re = real(x);
im = imag(x);
mo = abs(x);
fa = phase(x);
subplot(5,1,1);
subplot(5,1,2);
subplot(5,1,3);
subplot(5,1,4);
subplot(5,1,5);
stem(n,x);
stem(n,re);
stem(n,im);
stem(n,mo);
stem(n,fa);
11
10
x 10
5
0
-25
-20
-15
-10
-5
10
15
20
25
-20
-15
-10
-5
10
15
20
25
-20
-15
-10
-5
10
15
20
25
-20
-15
-10
-5
10
15
20
25
-20
-15
-10
-5
10
15
20
25
11
10
x 10
5
0
-25
1
0
-1
-25
11
10
x 10
5
0
-25
1
0
-1
-25
2. Sea
Calcular y graficar
( )
a)
( ) *
( ) *
(
name.m
clc; hold off;
clc
x1 = [1 7 -1 2 5 4];
x2 = [2 1 3 -1 0 3 1 3 2];
n1 = -2:3; n2 = -3:5;
subplot(3,2,1); stem(n1,x1);
subplot(3,2,3); stem(n2,x2);
% a)
n1 = -2:3; n2 = -3:5;
subplot(3,2,1); stem(n1,x1);
subplot(3,2,3); stem(n2,x2);
n1d = n1+3;
n2d = n2-1;
subplot(3,2,2); stem(n1d,x1);
subplot(3,2,4); stem(n2d,x2);
n = -4:6;
y = [ 0 0 0 0 0 x1] + 2 .* [x2 0 0] ;
+
+
)
subplot(3,2,6); stem(n,y);
10
10
-5
-2
-5
-1
-2
-3
-2
-4
-2
-1
-3
-2
-1
10
5
0
-5
-4
b)
( )
( )
name.m
clc;
hold off;
x1 = [1 7 -1 2 5 4];
x2 = [2 1 3 -1 0 3 1 3 2];
n1 = -2:3; n2 = -3:5;
subplot(3,2,1); stem(n1,x1);
subplot(3,2,3); stem(n2,x2);
n1 = -2:3; n2 = -3:5;
subplot(3,2,1); stem(n1,x1);
subplot(3,2,3); stem(n2,x2);
% b)
n1d = -n1-2;
n2d = n2;
subplot(3,2,2); stem(n1d,x1);
subplot(3,2,4); stem(n2d,x2);
n = -5:5;
y = [fliplr(x1) 0 0 0 0 0] + 3 .* [0 0 x2] ;
subplot(3,2,6); stem(n,y);
-2
10
10
-5
-2
-1.5
-1
-0.5
0.5
1.5
2.5
-5
-5
0
-1
-3
-4.5
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
-2
-1
-1
-3
-2
-1
20
10
0
-10
-5
-4
-3
-2
-1
( ) *
+ , calcular la
3. Sea la seal de entrada
secuencia de salida ( ) obtenida al aplicarla a los sistema discretos modelados por:
name.m
clc;
x =
h1 =
h2 =
h3 =
h4 =
h5 =
y
hold off;
[1 -1 2 3 4 -2 -1 5 -1 3 4 -5];
[1 -1 1];
[1 0 5 1];
[-0 5 -0.75 -0.5];
[0.25 0.75 0.25];
[1 1 1 1];
= conv(x,h);
subplot(3,1,1); stem([1:length(x)],x);
subplot(3,1,2); stem([1:length(h)],h);
subplot(3,1,3); stem([1:length(y)],y);
( )
5
0
-5
10
12
1
0
-1
1.2
1.4
1.6
1.8
2.2
2.4
2.6
2.8
10
0
-10
b)
( )
10
12
14
5
0
-5
10
12
1.5
2.5
3.5
6
4
2
0
50
0
-50
c)
( )
10
15
5
0
-5
10
12
1.5
2.5
3.5
5
0
-5
50
0
-50
d)
( )
10
15
5
0
-5
10
12
1
0.5
1.2
1.4
1.6
1.8
2.2
2.4
2.6
2.8
5
0
-5
e)
( )
10
12
14
5
0
-5
10
12
1.5
2.5
3.5
1
0.5
0
20
10
0
-10
10
15
reconozca y describa que hace cada secuencia (si es posible), en cada caso defina la
longitud de la respuesta segn el nmero de muestras que ocupa
4.
Calcular el resultado de aplicar la seal anterior a los sistemas descritos por las
ecuaciones en diferencias
( )
(
)
(
)
, a)
( )
(
)
( )
(
)
b)
Recomendacin: halle la funcin de transferencia utilizando la transformada Z y
aplique el comando filter (asuma T=1)
5. Genere dos periodos de una sinusoide analgica de amplitud 2 y frecuencia 100 Hz,
muestreada respetando el teorema de Shannon, asumir un desfasaje nulo
( )
( )
(
(
)
)
Determine: mdulo, fase, parte impar, parte par y periodo de la seal muestreada (usar
los comandos, abs, fase)
Pds35.m
nMax=40;
n=0:nMax;
A=2;
f=100;
O=0;
fs=10*f;
x=A*sin(2*pi*n*f/fs+O);
xPos = x;
xNeg = 2*sin(pi*(-n));
xp = 1/2.*(xPos+xNeg);
xi = 1/2.*(xPos-xNeg);
subplot(3,3,1); stem(n,x);
subplot(3,3,2); stem(n,real(x));
subplot(3,3,3); stem(n,imag(x));
subplot(3,3,4); stem(n,abs(x));
subplot(3,3,5); stem(n,phase(x));
subplot(3,3,6); stem(n,xp);
subplot(3,3,7); stem(n,xi);
subplot(3,3,4); stem(n,abs(x));
subplot(3,3,5); stem(n,phase(x));
xPos = x;
xNeg = 2*sin(pi*(-n));
xp = 1/2.*(xPos+xNeg);
xi = 1/2.*(xPos-xNeg);
subplot(3,3,6); stem(n,xp);
subplot(3,3,7); stem(n,xi);
subplot(3,3,6); stem(n,xp,'g','o');
subplot(3,3,7); stem(n,xi,'g','o');
hold on
x=2*sin(2*pi*1000.*n*1/1200);
xPos = x;
xNeg = 2*sin(2*pi*1000.*-n*1/1200);
xp = 1/2.*(xPos+xNeg);
xi = 1/2.*(xPos-xNeg);
subplot(3,3,1); stem(n,x,'r','.');
subplot(3,3,2); stem(n,real(x),'r','.');
subplot(3,3,3); stem(n,imag(x),'r','.');
subplot(3,3,4); stem(n,abs(x),'r','.');
subplot(3,3,5); stem(n,phase(x),'r','.');
subplot(3,3,6); stem(n,xp,'r','.');
subplot(3,3,7); stem(n,xi,'r','.');
f = 100;
O = 0;
fs = 10*f;
x = 2*sin(2*pi*n*100/fs);
e = sum(abs(x).^2)
x1 = 2*sin(2*pi*n*100/(2*fs));
e1 = sum(abs(x1).^2)
subplot(2,1,1); stem(n,x,'g','o');
title(strcat('Energia = ',num2str(e)));
subplot(2,1,2); stem(n,x,'r','*');
title(strcat('Energia 2 = ',num2str(e1)));
III.
CONCLUSIONES
IV.
1.
2.
3.
4.
CUESTIONARIO
A qu se denomina seal de energa y seal de potencia?, de ejemplos
Cmo se define la transformada Z de una seal?
Qu se entiende por funcin de transferencia?
Qu entiende por un sistema causal? Evale la causalidad de los sistemas descritos en
la actividad 4.