Está en la página 1de 21

UNIVERSIDAD DE SAN BUENAVENTURA BOGOTA D.

C
FACULTA DE INGENIERIA
INGENIERIA AERONUTICA
ANALISIS DE SEÑALES Y SISTEMAS
INFORME DE LABORATORIO 1
Santiago Herrera Palacio 20101231027
E D C B A
2 1 3 2 7

Números Complejos
Construya los números complejos
Z1=7+2i
Z2=2+i
Calcular:
I. Hallar:
 Z1+2Z2
= 11.0000 + 4.0000i
 3Z1-4Z2
= 13.0000 + 2.0000i
 Z1/3Z2
= 1.0667 - 0.2000i
 5Z1*3Z2
= 6.7500e+02 + 4.2000e+02i

II. Hallar la Parte real e imaginaria para Z1 y Z2


 Re[Z1]
=7
 Im[Z1]
=2
 Re[Z2]
=2
 Im[Z2]
=1

III. Calcular el Conjugado Z1 y Z2 y dibujarlos


 Conj[Z1]
= 7.0000 - 2.0000i
 Conj[Z2]

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


= 2.0000 - 1.0000i
Código de grafica
figure(1)
compass(p1,'r')
hold on
compass(p2)
axis([-11 11 -10 10])
title('Conjugados z1, z2')
xlabel('Real (Re)')
ylabel('Imaginario (i)')
legend('Conju.. de z1','Conju.. de z2')

IV. Calcular Z14 y Z25 usando el teorema de Moivre


 Z14
r=abs(z1)
t=angle(z1)
w1=r^4*(cos(t)+1i*sin(t))^4
w1= 1.2410e+03 + 2.5200e+03i
 Z25
r=abs(z2)
t=angle(z2)
w2=(r^5)*(cos(t)+1i*sin(t))^5
w2= -38.0000 +41.0000i
V. Calcular Raíces quintas de Z1
r=abs(z1)
t=angle(z1)
W1=r*(cos(t)+1i*sin(t))
d=(r)^(1/5);
Nk=5;
k0=0;
k1=1;
k2=2;
k3=3;
k4=4;
phi0=(t+2*k0*pi)/5
phi1=(t+2*k1*pi)/5
phi2=(t+2*k2*pi)/5
phi3=(t+2*k3*pi)/5
phi4=(t+2*k4*pi)/5
Z0=d*(cos(phi0)+1i*sin(phi0))
Z0= 1.4851 + 0.0827i
Z1=d*(cos(phi1)+1i*sin(phi1))
Z1= 0.3802 + 1.4380i
Z2=d*(cos(phi2)+1i*sin(phi2))
Z2= -1.2501 + 0.8060i
Z3=d*(cos(phi3)+1i*sin(phi3))
Z3= -1.1528 - 0.9399i
Z4=d*(cos(phi4)+1i*sin(phi4))
Z4= 0.5376 - 1.3868i

Señales de Continuas y Discretas

Usar:
T=0,01
t=-1:T:1

1) Graficar cada señal y presentarlas en la pantalla divida en cuatro (4)


subgraficas.

X= 9et X1= 3e-2t X2= e-t/2 X3= 2e-2|t|

Código
T=0.01
t=-1:T:1
x=7*exp(t)
x1=2*exp(-2*t)
x2=3*exp(-t/2)
x3=1*exp(-2*abs(t))
figure(2)
subplot(2,2,1); plot(x)
title('7*exp(t)')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


xlabel('t')
ylabel('x(t)')
subplot(2,2,2); plot(x1)
title('2*exp(-2*t)')
xlabel('t')
ylabel('x(t)')
subplot(2,2,3); plot(x2)
title('3*exp(-t/2)')
xlabel('t')
ylabel('x(t)')
subplot(2,2,4); plot(x3)
title('1*exp(-2*abs(t))')
xlabel('t')
ylabel('x(t)')

2) Considere la señal y= 9ei 2 π t Graficar la parte real, y la parte imaginaria para


la señal y.

Código
y=7*exp(i*2*pi*t)
y1=real(y)
y2=imag(y)
figure(3)
subplot(2,1,1); plot(y1)
title('Real de y')
xlabel('t')
ylabel('y')
subplot(2,1,2); plot(y2)
title('Imaginaria de y')
xlabel('t')
ylabel('y')

3) Dibujar el dientes de sierra

Código
saw=sawtooth(2*pi*t)
Y=2*saw
figure(4)
plot(t,Y)
title('Dientes de Sierra')
xlabel('t')
ylabel('y')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


4) Considere la señal x=(0.7)n, graficar la señal x usando stem(n,x)

Código
n=[-10:10]
x=(0.7).^n
figure(5)
s=stem(n,x)
title('x=(0.7).^n')
xlabel('n')
ylabel('x')
set(s(1),'MarkerFaceColor','blue')
iπ n π
5) Considere las señales y1=(0.7)|n| y 2=e 5

3

Código
Y1=(0.7).^(abs(n))
Y2=exp(((i*pi*n)/5)-pi/3)
Y1r=real(Y1)
Y1i=imag(Y1)
figure(6)
subplot(2,2,1); stem(n,Y1r)
title('Real de Y1')
xlabel('x')
ylabel('y')
subplot(2,2,2); stem(n,Y1i)
title('Imaginaria de Y1')
xlabel('x')
ylabel('y')
subplot(2,2,3); stem(n,Y2)
title('exp(((i*pi*n)/5)-pi/3)')
xlabel('n')
ylabel('y')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


6) Graficar la señal discreta: y[n]={…, 2, 1, 3, 2, 7, …} Luego, la parte par y la
parte impar.

Código
%codigo extra creado por el autor require archivos adicionales
pedirlos al autor.
n = -3:3;
yn = 2*ustep(n+1)-ustep(n+0)+2*ustep(n-1)-ustep(n-2)+5*ustep(n-3);%
x(t)
yn2 = 2*ustep(-n+1)-ustep(-n+0)+2*ustep(-n-1)-ustep(-n-2)+5*ustep(-
n-3);
ynpar = (yn+yn2)/2
yninpar = (yn-yn2)/2
figure(7)
subplot(2,2,1); dtplot(n,yn,'o','b','-'); axis([-4 4 0 7.5]);
hold on
title('Combinación de señales escalón')
xlabel('Variable independiente n')
ylabel('u(n)')
subplot(2,2,2); dtplot(n,yn2,'o','b','-'); axis([-4 4 0 7.5]);
hold on
title('Combinación de señales escalón y(-n)')
xlabel('Variable independiente n')
ylabel('u(n)')
subplot(2,2,3); dtplot(n,ynpar,'o','g','-'); axis([-4 4 0 7.5]);
hold on
grid on
title('Combinación de señales escalón Y(n)Par')
xlabel('Variable independiente n')
ylabel('u(n)')
subplot(2,2,4); dtplot(n,yninpar,'o','r','-'); axis([-4 4 -6 6]);
hold on
plot([-4 4],[0 0])
plot([0 0],[-6 6])
title('Combinación de señales escalón Y(n)Inpar')
xlabel('Variable independiente n')
ylabel('u(n)')

7) Dibujar las señales sobre el intervalo

π
a. x 1 ( t )=3 cos (4 πt + )
3

2+t −2 ≤t <0
x
b. 2 ( t ) =
{
2−0 . 5 t 0 ≤ t<2
0 resto

c. x 4 ( t ) =ᴧ (2 t−2) intervalo (-2,7); donde ᴧ(t) es una función “triángulo”


que comienza en (-1,0), llega a (0,1) y termina en (1,0).

d. x 5 ( t )=e−2|t|

sin 6 t
e. x 6 ( t )=
6t

3 t
f. x 7 ( t )= sin intervalo (-20,20)
t 3

Código

t=linspace(-2,7,3000);
x1=(0).*(t<1)+(t>1);
x2=(0).*(t<-2)+((2+t).*((-2<=t)&(t<0)))+((2-
(0.5*t)).*((0<=t)&(t<2)))
L=(0).*(t<-1)+(t+1).*((t>=-1)&(t<0))+(1-
t).*((t>=0)&(t<1))+(0).*(t>1)
x4=(0).*(t<0)+(0.5*t).*((t>=0)&(t<2))+(2-
0.5*t).*((t>=2)&(t<4))+(0).*(t>4)

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


x5=exp(-2*abs(t))
x6=(sin(6*t))./(6*t)
t=linspace(-20,20,3000);
x7=(2./t).*(sin(t./2))
figure(8)
subplot(3,3,1); plot(t,x1,'.'),grid on,title('x1(t)=u(t-
1)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,2); plot(t,x2,'.'),grid on,title('x2')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,3); plot(t,L,'.'),grid on,title('func
triángulo')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,4); plot(t,x4,'.'),grid on,title('func
triángulo(2t-2)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,5); plot(t,x5,'.'),grid on,title('exp(-2|
t|)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,6); plot(t,x6,'.'),grid on,title('sin(6*t))/
(6*t))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(3,3,7); plot(t,x7,'.'),grid on
title('(2/t)*sin(t/2)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
8) Dibujar las siguientes señales, su parte par e impar, y reconstruir la señal
original a partir de ellas:

a. x 1 ( t )=e−|t −1|

2−1 ≤t ≤3
b. x 2 ( t )={ 0 resto

c. x 3 ( t )=3 sin(6 πt)

d. x 4 ( t ) =4 cos(2 πt)

Código

%a)
x1=exp(-abs(t-1));
x1n=exp(-abs(-t-1));
x1p=(x1+x1n)/2;
x1i=(x1-x1n)/2;
x1t=x1p+x1i;
figure(9)
subplot(2,2,1); plot(t,x1,'.'),grid on,title('x1')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


subplot(2,2,2); plot(t,x1p,'.'),grid on,title('x1 par')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,3); plot(t,x1i,'.'),grid on,title('x1
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,4); plot(t,x1t,'.'),grid
on,title('x1=x1par+x1impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

%b)
t=linspace(-5,5,3000);
x2=(0).*(t<-1)+(2).*((t>=-1)&(t<=3))+(0).*(t>3);
x2n=(0).*(t<-3)+(2).*((t>=-3)&(t<=1))+(0).*(t>1);
x2p=(x2+x2n)/2;
x2i=(x2-x2n)/2;
x2t=x2p+x2i;
figure(10)
subplot(2,2,1); plot(t,x2,'.'),grid on,title('x2')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,2); plot(t,x2p,'.'),grid on,title('x2 par')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,3); plot(t,x2i,'.'),grid on,title('x2
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,4); plot(t,x2t,'.'),grid
on,title('x2=x2par+x2impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

%c)
t=linspace(-2,2,10000);
x3=3*sin(6*pi.*t);
x3n=3*(sin(-6*pi.*t));
x3p=(x3+x3n)./2;
x3i=(x3-x3n)/2;
x3t=x3p+x3i;

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


figure(11)
subplot(2,2,1); plot(t,x3,'.'),grid on,title('x3')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,2); plot(t,x3p,'.'),grid on,title('x3 par')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,3); plot(t,x3i,'.'),grid on,title('x3
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,4); plot(t,x3t,'.'),grid
on,title('x3=x3par+x3impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

%d)
t=linspace(-2,2,10000);
x4=4*sin(2*pi.*t);
x4n=4*(sin(-2*pi.*t));
x4p=(x4+x4n)./2;
x4i=(x4-x4n)/2;
x4t=x4p+x4i;
figure(12)
subplot(2,2,1); plot(t,x4,'.'),grid on,title('x4')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,2); plot(t,x4p,'.'),grid on,title('x4 par')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,3); plot(t,x4i,'.'),grid on,title('x4
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,4); plot(t,x4t,'.'),grid
on,title('x4=x4par+x4impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

9) Dada la señal: x ( t )=4 e−2 t cos (πt )Dibuje x(t) y las siguientes señales:

a. x(t-1)

b. x(2-t)

c. x(2t+1)

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


t
d. x (4− )
2

Código

t=linspace(-2,2,10000);
x=4.*exp((-2).*t).*cos(pi.*t)
x1=4.*exp((-2).*(t-1)).*cos(pi.*(t-1))
x2=4.*exp((-2).*(2-t)).*cos(pi.*(2-t))
x3=4.*exp((-2).*(2.*t+1)).*cos(pi.*(2.*t+1))
x4=4.*exp((-2).*(4-(t./2))).*cos(pi.*(4-(t./2)))
figure(13)
subplot(2,3,1); plot(t,x,'.'),grid on,title('x(t)=4exp(-
2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,3,2); plot(t,x1,'.'),grid on,title('x(t-
1)=4exp(-2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,3,3); plot(t,x2,'.'),grid on,title('x(2-
t)=4exp(-2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,3,4); plot(t,x3,'.'),grid
on,title('x(2t+1)=4exp(-2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,3,5); plot(t,x4,'.'),grid on,title('x(4-
(t/2))=4exp(-2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
10) Dibuje las siguientes señales y determine si son señales periódicas, y en
éste caso, cuál es su periodo fundamental.

Código

%a)
t=linspace(-2,2,10000);
x1=3.*cos((4*pi.*t)+(pi/3));
x2=real(exp(i.*((pi.*t)-1)));
x3=(cos(2.*t)).^2
T1=(2*pi)/(4*pi)
T2=(2*pi)/pi
T3=(2*pi)/(2^2)
figure(14)
subplot(1,3,1); plot(t,x1,'.'),grid
on,title('x1=3cos((4pi t)+(pi/3))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(1,3,2); plot(t,x2,'.'),grid
on,title('x2=real(exp(i(pi t-1)))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(1,3,3); plot(t,x3,'.'),grid
on,title('x(2t+1)=4exp(-2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


π
a. x 1 ( t )=3 cos (4 πt + ) Es periódica y T=0,5
3
i (πt−1)
b. x 2 ( t )=ℜ { e } Es periódica y T=2
2
c. x 3 ( t )=cos (2 t) Es periódica y T= pi/2

%b)
t=linspace(-2,2,10000);
x4=2.*cos(((5*pi)/3).*t)
x5=3.*sin(((7*pi)/4).*t)
x6=x4-x5
T4=(2*pi)/((5*pi)/3)
T5=(2*pi)/((7*pi)/4)
figure(15)
subplot(1,3,1); plot(t,x4,'.'),grid
on,title('x4=2cos(((5*pi)/3).*t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(1,3,2); plot(t,x5,'.'),grid
on,title('x5=2cos(((7*pi)/4).*t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot (1,3,3); plot(t,x6,'.'),grid
on,title('x6=2cos(((7*pi)/4).*t)-3cos(((7*pi)/4).*t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')


a. x 4 ( t ) =2 cos( t) Es periódica T=1,2
3

b. x 5 ( t )=3 sin( t) Es periódica T=1,1429
4
5π 7π
c. x 6 ( t )=2 cos( )
3
t −3 sin(
4
t) No es Periódica

11) Dada la señal: X(t)=2u(t+3) – 2r(t+1) + 2r(t-2) + 3u(t-5) + u(t-8)

a. Graficar la señal
b. Graficar la componente par
c. Graficar la señal y 1=x (0.5 t+ 3/2)
d. Graficar la señal y 2=x (−3 t−2)

Código

t=linspace(-9,9,10000)
x=(0).*(t<-3)+(2).*((t>=-3)&(t<-1))-(2.*t).*((t>=-
1)&(t<2))+(2.*t).*((t>=2)&(t<5))+(3).*((t>=5)&(t<8))+
(t>=8);
xn=(t<-8)+(3).*((t>=-8)&(t<-5))-(2.*t).*((t>=-5)&(t<-2))
+(2.*t).*((t>=-2)&(t<1))+(2).*((t>=1)&(t<3))+(0).*(t>=3)
xp=(x+xn)/2
t=linspace(-8,12,10000)
y1=(0).*(t<-3)+(2).*((t>=-3)&(t<-1))-(2.*t).*((t>=-
1)&(t<2))+(2.*t).*((t>=2)&(t<5))+(3).*((t>=5)&(t<8))+
(t>=8)
t=linspace(-8,12,10000)
y2=(0).*(t<-3)+(2).*((t>=-3)&(t<-1))-(2.*t).*((t>=-
1)&(t<2))+(2.*t).*((t>=2)&(t<5))+(3).*((t>=5)&(t<8))+
(t>=8)
figure(16)
subplot(2,2,1); plot(t,x,'.'),grid on,title('x(t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,2); plot(t,xp,'.'),grid on,title('xpar (t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,3); plot(((2*t)-(3/2)),y1,'.'),grid
on,title('x (0.5t+(3/2))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
subplot(2,2,4); plot((((-1/3)*t)+2),y2,'.'),grid
on,title('x (0.5t+(3/2))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010


12) Dada la señal x[n]:

1 ,−4 ≤ n←2

x [n]=

a.
{ n ,∧|n|≤ 2
2 n , 2< n ≤ 4
−1 n=5
0 los demás valores de n
Graficar x[n], y[n]=x[3-n]
b. Graficar la componente impar de x[n
c. Graficar y2[n]=x[n-3]
d. Graficar y3[n]= -2x[n+4]

Código

n=[-10:10];
x=(0).*(n<-4)+(1).*((n>=-4)&(n<-2))+
(n).*(abs(n)<=2)+(2.*n).*((n>2)&(n<=4))-((n>=5)&(n<6))
+(0).*(n>=6);
subplot(2,3,1); stem(n,x), title('x[n]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
n=[-10:10];
x=(0).*(n<-4)+(1).*((n>=-4)&(n<-2))+
(n).*(abs(n)<=2)+(2.*n).*((n>2)&(n<=4))-((n>=5)&(n<6))
+(0).*(n>=6);
subplot(2,3,2); stem(-3-n,x), title('y[n]=x[3-n]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
xn=(0).*(n<=-6)-((n<=-5)&(n>-6))-(2.*n).*((n>=-4)&(n<-
2))-(n).*(abs(n)<=2)+(1).*((n>2)&(n<=4))+(0).*(n>4);
xi=(x-xn)/2
subplot(2,3,3); stem(n,xi), title('ximpar [n]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
n=[-10:10];
x=(0).*(n<-4)+(1).*((n>=-4)&(n<-2))+
(n).*(abs(n)<=2)+(2.*n).*((n>2)&(n<=4))-((n>=5)&(n<6))
+(0).*(n>=6);
subplot(2,3,4); stem(n+3,x); title('y[n]=x[n-3]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
n=[-10:10];
x=-2.*((0).*(n<-4)+(1).*((n>=-4)&(n<-2))+
(n).*(abs(n)<=2)+(2.*n).*((n>2)&(n<=4))-((n>=5)&(n<6))
+(0).*(n>=6));
subplot(2,3,5); stem(n-4,x),title('y[n]=-2x[n+4]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

By Santiago Herrera Palacio Tricell Inc. BOW000200302010

También podría gustarte