Está en la página 1de 14

UNIVERSIDAD DE SAN BUENAVENTURA

INGENIERÍA AERONÁUTICA
ANÁLISIS DE SEÑALES Y SISTEMAS
EDUARDO ALFREDO NIETO CRUZ CÓDIGO: 20103231039
INFORME DE LABORATORIO 1

A=9, B=3, C=1, D=2, E=3 ylabel('imaginario [i]')


NÚMEROS COMPLEJOS legend('conj de z1','conj de z2')
Construya los números:
z1 = 9 + 3i
z2 = 3+ 2i

I)
Halle: r1=z1+(2*z2)
r1 = 15+ 7i

Halle: r2=(3*z1)-(4*z2)
r2 = 15 + 1i

Halle: r3=z1/(3*z2)
r3 = 0.8462 - 0.2308i

Halle: r4=(5*z1)*(3*z2)
r4 = 3.15e+2 +4.05e+2i

II). Hallar la parte real e imaginaria para z1 y


z2.
Imagen 1. Conjugado de z1 y z2
r5=real(z1)
r5 = 9 IV). Calcular z14 y z25 usar el teorema de
Moivre
r6=imag(z1)
r6 = 3 r=abs(z1)
r = 9.4868
r7=real(z2) t=angle(z1)
r7 = 3 t = 0.3218
w1=(r^4)*(cos(t)+i*sin(t))^4
r8=imag(z2) w1 = 2.2680e+3 +7.7760e+3i
r8 = 2
r=abs(z2)
III). Calcular el conjugado de z1 y z2 y r = 3.6056
dibujarlos t=angle(z2)
t = 0.5880
r9=conj(z1) w2=(r^5)*(cos(t)+i*sin(t))^5
r9=9-3i w2 = -5.9700e+2 +1.22e+2i

r10=conj(z2) SEÑALES CONTÍNUAS Y DISCRETAS


r10=3-2i Use T=00.1, t= -1:T:1 y considere las
siguientes señales:
Código para la gráfica: X= 9et X1= 3e-2t X2= e-t/2 X3= 2e-2|t|
compass(r9,'r') 1. Graficar cada señal y presentarlas en la
hold on pantalla dividida en 4.
compass(r10)
AXIS([-11 11 -10 10]) Código:
title('conjugados z1, z2') t=-1:0.01:1;
xlabel('real [re]') x=9*exp(t);
x1=3*exp(-2*t);
x2=exp(-t/2); ylabel('unidad [u]')
x3=2*exp(-2*abs(t)); subplot(2,2,3); plot(x2)
subplot(2,2,1); plot(x) title('x2')
title('x') xlabel('tiempo t [s]')
xlabel('tiempo t [s]') ylabel('unidad [u]')
ylabel('unidad [u]') subplot(2,2,4); plot(x3)
subplot(2,2,2); plot(x1) title('x3')
title('x1') xlabel('tiempo t [s]')
xlabel('tiempo t [s]') ylabel('unidad [u]')

Imagen 2. X, X1, X2, X3

y2=imag(y);
2. Considere la señal subplot(2,1,1);plot(y1)
y= 9ei 2 π t title('real de 9exp(i2 pi t)')
Graficar la parte real, y la parte imaginaria xlabel('tiempo t [s]')
para la señal y. ylabel('unidad [u]')
Código: subplot(2,1,2);plot(y2)
t=-1:0.01:1; title('imaginario de 9exp(i2 pi
y=9*exp(i*2*pi*t); t)')
y1=real(y); xlabel('tiempo t [s]')
ylabel('unidad imaginaria [i]')

Imagen 3. Real(y) e Imaginario(y)


y=3*saw;
plot(t,y)
3. Dibujar el diente de sierra: title('diente de sierra')
Código: xlabel('tiempo t [s]')
saw=sawtooth(2*pi*t); ylabel('unidad [u]')

Imagen 4. Diente de sierra.

4. Use n=[-10:10] Código:


Considere la señal x=(0.9)n, graficar la señal y1=(0.9).^(abs(n));
x usando stem(n,x) re=real(y1);
stem(n,re);
Código: title('señal discreta real 0.9
n=[-10:10]; ^(abs(n))')
x=(0.9).^n; xlabel('tiempo t [s]')
stem(n,x); ylabel('unidad [u]')
title('señal discreta')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 6. Señal discreta real y1

Código:
Imagen 5. Señal Discreta im=imag(y1);
5. Considere las señales stem(n,im);
iπ n π title('señal discreta imaginaria

y1=(0.9)|n| 5 3 0.9 ^(abs(n))')
y 2=e
Graficar las señales y las partes real e xlabel('tiempo t [s]')
imaginaria de y1. ylabel('unidad [u]')
Imagen 7. Señal Discreta imaginaria y1 Imagen 9. Señal discreta y[n]
Código:
Código: Yp=(yn+ynn)/2;
y2=exp(((i*pi*n)/5)-(pi/3)); stem(n,Yp);
stem(n,y2); title('señal discreta par Yp')
title('señal discreta xlabel('tiempo t [s]')
exp(((i*pi*n)/5)-(pi/3))') ylabel('unidad [u]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 10. Señal discreta yp[n]


Código:
Imagen 8. Señal discreta y2 Yi=(yn-ynn)/2;
6. Graficar la señal discreta: stem(n,Yi);
y[n]={…, 3, 2, 1, 3, 9, …} title('señal discreta impar Yi')
Luego, la parte par y la parte impar. xlabel('tiempo t [s]')
ylabel('unidad [u]')
Código:
n=(-5:5);
yn=((0).*(n<(-2)))+((3).*(n>(-
2)))+((-1).*(n>(-1)))+((-
1).*(n>(0)))+((2).*(n>(1)))+
((6).*(n>(2)))+((-9).*(n>(3)));
stem(n,yn);
title('señal discreta y(n)=3 [2]
1 3 9')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
ynn=((0).*(n<(-4)))+((9).*(n>(-
4)))+((-6).*(n>(-3)))+((-
2).*(n>(-2)))+((1).*(n>(-1)))+
((1).*(n>(0)))+((-3).*(n>(1))); Imagen 11. Señal discreta yi[n]

7. Dibujar las señales sobre el intervalo


-2 ≤ t ≤9 plot(t,L,'.'),grid on,title('func
π triángulo')
a) x 1 ( t )=3 cos (4 πt + ) xlabel('tiempo t [s]')
3 ylabel('unidad [u]')
Código: x4=(0).*(t<0)+(0.5*t).*((t>=0)&(t
t=linspace(-2,9,3000);
<2))+(2-0.5*t).*((t>=2)&(t<4))
x1=(0).*(t<1)+(t>1);
+(0).*(t>4)
plot(t,x1,'.'),grid
plot(t,x4,'.'),grid
on,title('x1(t)=u(t-1)')
on,title('func triángulo(2t-2)')
xlabel('tiempo t [s]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
ylabel('unidad [u]')

Imagen 12. X1(t) Imagen 14. Función ᴧ(t)


2+t −2 ≤t <0
b)

Código:
{
x 2 ( t )= 2−0 . 5 t 0 ≤ t<2
0 resto

x2=(0).*(t<-2)+((2+t).*((-
2<=t)&(t<0)))+((2-
(0.5*t)).*((0<=t)&(t<2)))
plot(t,x2,'.'),grid
on,title('x2')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 15. X4(t)
−2|t|
d) x 5 ( t )=e
Código:
x5=exp(-2*abs(t))
plot(t,x5,'.'),grid
on,title('exp(-2|t|)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 13. X2(t)


c) x 4 ( t ) =ᴧ (2 t−2) intervalo (-2,9); donde
ᴧ(t) es una función “triángulo” que comienza
en (-1,0), llega a (0,1) y termina en (1,0).
Código:
L=(0).*(t<-1)+(t+1).*((t>=-
1)&(t<0))+(1-t).*((t>=0)&(t<1))
+(0).*(t>1)
Imagen 16. X5(t) plot(t,x1,'.'),grid
sin 6 t on,title('x1')
e) x 6 ( t )= xlabel('tiempo t [s]')
6t ylabel('unidad [u]')
Código: x1n=exp(-abs(-t-1));
t=linspace(-2,9,3000);
x6=(sin(6*t))./(6*t)
plot(t,x6,'.'),grid
on,title('sin(6*t))/(6*t))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 18. X1(t)


Código:
x1p=(x1+x1n)/2;
plot(t,x1p,'.'),grid on,title('x1
par')
xlabel('tiempo t [s]')
Imagen 17. X6(t) ylabel('unidad [u]')
3 t
f) x 7 ( t )= sin intervalo (-20,20)
t 3
Código:
t=linspace(-20,20,3000);
x7=(3./t).*(sin(t./3))
plot(t,x7,'.'),grid
on,title('(3/t)*sin(t/3)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 19. X1p(t)


Código:
x1i=(x1-x1n)/2;
plot(t,x1i,'.'),grid on,title('x1
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 18. X7(t)


8. Dibujar las siguientes señales, su parte par
e impar, y reconstruir la señal original a partir
de ellas:

−|t −1|
a) x 1 ( t )=e
Código:
x1=exp(-abs(t-1));
Imagen 20. X1i(t) Imagen 22. X2(t)
Código:
Código: x2n=(0).*(t<-3)+(2).*((t>=-
x1t=x1p+x1i; 3)&(t<=1))+(0).*(t>1);
plot(t,x1t,'.'),grid x2p=(x2+x2n)/2;
on,title('x1=x1par+x1impar') plot(t,x2p,'.'),grid on,title('x2
xlabel('tiempo t [s]') par')
ylabel('unidad [u]') xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 21. X1(t)=X1p+X1i


2−1 ≤t ≤3 Imagen 23. X2p(t)
b) x 2 ( t )= {0 resto
Código:
x2i=(x2-x2n)/2;
Código: plot(t,x2i,'.'),grid on,title('x2
t=linspace(-5,5,3000); impar')
x2=(0).*(t<-1)+(2).*((t>=- xlabel('tiempo t [s]')
1)&(t<=3))+(0).*(t>3); ylabel('unidad [u]')
plot(t,x2,'.'),grid
on,title('x2')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 24. X2i(t)


Código:
x2t=x2p+x2i;
plot(t,x2t,'.'),grid
on,title('x2=x2par+x2impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 27. X3p(t)


Código:
x3i=(x3-x3n)/2;
plot(t,x3i,'.'),grid on,title('x3
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 25. X2(t)=X2p+X2i

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


Código:
t=linspace(-2,2,10000);
x3=3*sin(6*pi.*t);
plot(t,x3,'.'),grid
on,title('x3')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 28. X3i(t)
Código:
x3t=x3p+x3i;
plot(t,x3t,'.'),grid
on,title('x3=x3par+x3impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 26. X3(t)


Código:
x3n=3*(sin(-6*pi.*t));
x3p=(x3+x3n)./2;
plot(t,x3p,'.'),grid on,title('x3
par')
xlabel('tiempo t [s]')
ylabel('unidad [u]') Imagen 29. X3(t)=X3p+X3i
d) x 4 ( t ) =4 cos(2 πt)
Código:
t=linspace(-2,2,10000);
x4=4*sin(2*pi.*t);
plot(t,x4,'.'),grid
on,title('x4')
xlabel('tiempo t [s]') plot(t,x4t,'.'),grid
ylabel('unidad [u]') on,title('x4=x4par+x4impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 30. X4(t)

Código: Imagen 33. X4p(t)=X4p+X4i


x4n=4*(sin(-2*pi.*t));
x4p=(x4+x4n)./2; 9). Dada la señal:
plot(t,x4p,'.'),grid on,title('x3
par') x ( t )=4 e−2 t cos (πt )
xlabel('tiempo t [s]') Dibuje x(t) y las siguientes señales:
ylabel('unidad [u]') Código:
x=4.*exp((-2).*t).*cos(pi.*t)
plot(t,x,'.'),grid
on,title('x(t)=4exp(-2t)cos(pi
t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 31. X4p(t)


Código:
x4i=(x4-x4n)/2;
plot(t,x4i,'.'),grid on,title('x4
impar')
xlabel('tiempo t [s]')
ylabel('unidad [u]') Imagen 34. X(t)
a). x(t-1)
Código:
x1=4.*exp((-2).*(t-
1)).*cos(pi.*(t-1))
plot(t,x1,'.'),grid
on,title('x(t-1)=4exp(-2t)cos(pi
t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 32. X4i(t)


Código:
x4t=x4p+x4i;
t
d) x (4− )
2
Código:
x4=4.*exp((-2).*(4-
(t./2))).*cos(pi.*(4-(t./2)))
plot(t,x4,'.'),grid
on,title('x(4-(t/2))=4exp(-
2t)cos(pi t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 35. X(t-1)


b). x(2-t)
Código:
x2=4.*exp((-2).*(2-
t)).*cos(pi.*(2-t))
plot(t,x2,'.'),grid
on,title('x(2-t)=4exp(-2t)cos(pi
t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 38. X(4-(t/2))
10). Dibuje las siguientes señales y
determine si son señales periódicas, y en
éste caso, cuál es su periódo fundamental.
π
a). x 1 ( t )=3 cos (4 πt + )
3
Código:
x1=3.*cos((4*pi.*t)+(pi/3))
plot(t,x1,'.'),grid
on,title('x1=3cos((4pi t)+
(pi/3))')
Imagen 36. X(2-t) xlabel('tiempo t [s]')
c) x(2t+1) ylabel('unidad [u]')
Código:
x3=4.*exp((-
2).*(2.*t+1)).*cos(pi.*(2.*t+1))
plot(t,x3,'.'),grid
on,title('x(2t+1)=4exp(-2t)cos(pi
t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 39. X1(t)


Sí es periódica
T1=(2*pi)/(4*pi)
T1 = 0.5

b) x 2 ( t )=ℜ { ei (πt−1) }
Código:
Imagen 37. X(2t+1) x2=real(exp(i.*((pi.*t)-1)))
plot(t,x2,'.'),grid
on,title('x2=real(exp(i(pi t-
1)))')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 42. X4(t)


Sí es periódica
T4=(2*pi)/((5*pi)/3)
Imagen 40. X2(t) T4 =1.2
Sí es periódica
T2=(2*pi)/pi 7π
e) x 5 ( t )=3 sin( t)
T2 = 2 4
Código:
2 x5=3.*sin(((7*pi)/4).*t)
c) x 3 ( t )=cos (2 t)
plot(t,x5,'.'),grid
Código:
on,title('x5=2cos(((7*pi)/4).*t)'
x3=(cos(2.*t)).^2
)
plot(t,x3,'.'),grid
xlabel('tiempo t [s]')
on,title('x3=(cos(2t))^2')
ylabel('unidad [u]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 43. X5(t)


Imagen 41. X3(t) Sí es periódica
T5=(2*pi)/((7*pi)/4)
Sí es periódica
T3=(2*pi)/(2^2) T5 = 1.1429
T3= pi/2
d) x 4 ( t ) =2 cos(

3
t) f) x 6 ( t )=2 cos ( 53π t )−3 sin( 74π t)
Código: Código:
x4=2.*cos(((5*pi)/3).*t) x6=x4-x5
plot(t,x4,'.'),grid plot(t,x6,'.'),grid
on,title('x4=2cos(((5*pi)/3).*t)' on,title('x6=2cos(((7*pi)/4).*t)-
) 3cos(((7*pi)/4).*t)')
xlabel('tiempo t [s]') xlabel('tiempo t [s]')
ylabel('unidad [u]') ylabel('unidad [u]')
Imagen 46. Xp(t)
Imagen 44. X6(t) 3
No es periódica
C) Graficar la señal y 1=x (0 . 5 t+ )
2
Código:
11) Dada la señal: t=linspace(-8,12,10000)
X(t)=2u(t+3) – 2r(t+1) + 2r(t-2) + 3u(t-5) + u(t- y1=(0).*(t<-3)+(2).*((t>=-3)&(t<-
8) 1))-(2.*t).*((t>=-1)&(t<2))
A) Graficar la señal: +(2.*t).*((t>=2)&(t<5))
Código: +(3).*((t>=5)&(t<8))+(t>=8)
t=linspace(-9,9,10000) plot(((2*t)-(3/2)),y1,'.'),grid
x=(0).*(t<-3)+(2).*((t>=-3)&(t<- on,title('x (0.5t+(3/2))')
1))-(2.*t).*((t>=-1)&(t<2)) xlabel('tiempo t [s]')
+(2.*t).*((t>=2)&(t<5)) ylabel('unidad [u]')
+(3).*((t>=5)&(t<8))+(t>=8)
plot(t,x,'.'),grid
on,title('x(t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 47. Y1(t)


D) Graficar la señal y 2=x (−3 t−2)
Código:
t=linspace(-8,12,10000)
y2=(0).*(t<-3)+(2).*((t>=-3)&(t<-
Imagen 45. X(t)
1))-(2.*t).*((t>=-1)&(t<2))
B) Graficar la componente par.
+(2.*t).*((t>=2)&(t<5))
Código:
+(3).*((t>=5)&(t<8))+(t>=8)
xn=(t<-8)+(3).*((t>=-8)&(t<-5))-
plot((((-1/3)*t)+2),y2,'.'),grid
(2.*t).*((t>=-5)&(t<-2))
on,title('x (0.5t+(3/2))')
+(2.*t).*((t>=-2)&(t<1))
xlabel('tiempo t [s]')
+(2).*((t>=1)&(t<3))+(0).*(t>=3)
ylabel('unidad [u]')
xp=(x+xn)/2
plot(t,xp,'.'),grid
on,title('xpar (t)')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 50. Y[n]
Imagen 48. Y2(t) B) Graficar la componente impar de x[n]
12) Dada la señal x[n]: xn=(0).*(n<=-6)-((n<=-5)&(n>-6))-
(2.*n).*((n>=-4)&(n<-2))-
1,−4 ≤n←2

{
(n).*(abs(n)<=2)+(1).*((n>2)&(n<=
n ,∧|n|≤ 2 4))+(0).*(n>4);
x [n]= 2 n , 2<n ≤ 4 xi=(x-xn)/2
−1 n=5 stem(n,xi);
title('ximpar [n]')
0 los dem á s valores de n xlabel('tiempo t [s]')
A) Graficar x[n], y[n]=x[3-n] ylabel('unidad [u]')
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);
stem(n,x);
title('x[n]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 51. Xi[n]
C) Graficar y2[n]=x[n-3]
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);
stem(n+3,x);
title('y[n]=x[n-3]')
Imagen 49. X[n] xlabel('tiempo t [s]')
Código: 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);
stem(-3-n,x);
title('y[n]=x[3-n]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')
Imagen 52. Y2[n]
D) Graficar y3[n]= -2x[n+4]
Código:
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));
stem(n-4,x)
title('y[n]=-2x[n+4]')
xlabel('tiempo t [s]')
ylabel('unidad [u]')

Imagen 53. Y3[n]

También podría gustarte