Documentos de Académico
Documentos de Profesional
Documentos de Cultura
InformeLab01 Analisis de Señales
InformeLab01 Analisis de Señales
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
Usar:
T=0,01
t=-1:T:1
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)')
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')
Código
saw=sawtooth(2*pi*t)
Y=2*saw
figure(4)
plot(t,Y)
title('Dientes de Sierra')
xlabel('t')
ylabel('y')
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')
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)')
π
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
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)
a. x 1 ( t )=e−|t −1|
2−1 ≤t ≤3
b. x 2 ( t )={ 0 resto
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]')
%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;
%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)
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]')
%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]')
5π
a. x 4 ( t ) =2 cos( t) Es periódica T=1,2
3
7π
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
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]')
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]')