Sunteți pe pagina 1din 11

Universidad Nacional de San Aguistin

Curso: Señales y Sistemas

Apellidos y Nombres: Villegas Gomez Aldo

CUI: 20160777

Pregunta 1

Grafique las señales


a) y(t)=5,09sin(2π 1000t)V

T=1/1000;
t=0:T/20:2*T;
y=5.09*sin(2*%pi*1000*t);
plot(t,y,'LineWitch', 3)
xlabel('Tiempo (s)')
ylabel('Ampĺitud (V)')

title('Pregunta 1-Grafica a');

b) y(t)=1.69sin(2π 3000t)V

T=1/3000;
t=0:T/20:2*T;
y=1.69*sin(2*%pi*3000*t);
plot(t,y,'LineWitch', 3)
xlabel('Tiempo (s)')
ylabel('Ampĺitud (V)')
title('Pregunta 1-Grafica a');
c) y(t)=1.02sin(2π 5000t)V

T=1/5000;
t=0:T/20:2*T;
y=1.02*sin(2*%pi*5000*t);
plot(t,y,'LineWitch', 3)
xlabel('Tiempo (s)')
ylabel('Ampĺitud (V)')
title('Pregunta
1-Grafica a');
d) y(t)=0.73sin(2π 7000t)V

T=1/7000;
t=0:T/20:2*T;
y=0.73*sin(2*%pi*7000*t);
plot(t,y,'LineWitch', 3)
xlabel('Tiempo (s)')
ylabel('Ampĺitud (V)')

title('Pregunta 1-Grafica a');


e) y(t)=0.57sin(2π 9000t)V

T=1/9000;
t=0:T/20:2*T;
y=0.57*sin(2*%pi*9000*t);
plot(t,y,'LineWitch', 3)
xlabel('Tiempo (s)')
ylabel('Ampĺitud (V)')
title('Pregunta 1-Grafica a');

f)
y=y
1+y
2+y
3+y
4+y
5

T=1/1000;
t=0:T/20:2*T;
y1=5.09*sin(2*%pi*1000*t);
y2=1.69*sin(2*%pi*3000*t);
y3=1.02*sin(2*%pi*5000*t);
y4=0.73*sin(2*%pi*7000*t);
y5=0.57*sin(2*%pi*9000*t);
y=y1+y2+y3+y4+y5;
plot(t,y,'r','LineWidth',2);
xlabel('Tiempo(s)')
ylabel('y=y1+y2+y3+y4+y5')
xgrid

Responda a las siguientes preguntas

- ¿A qué señal que conoce se parece la señal?


Es una señal periódica con variaciones en su amplitud lo que hace pensar que podría también
tratarse de una señal analógica
- ¿Qué relación encuentra entre las señales?
La señal hallada en el grafico muestra una relación o parecido también al comportamiento de una
señal analógica

Escribir el código que permita obtener la siguiente figura

A) Rectificación de onda completa

T=1/100;
t=-3*T/2:T/200:3*T/2;
y=10*cos(2*%pi*100*t);
y=abs(y)
plot(t,y,'m','LineWidth',2);
xlabel('Tiempo(s)')
ylabel('Amplitud(v)')
title('Rectificacion de onsa completa')
xgrid

b)
Rectific
ación de
media
onda :

A=10;
T=1/100;
P=T/2;
t=-
3*T/2:T/2
00:3*T/2;
y=zeros(1,
length(t));
n=0;
while
n*T>-
3*T/2
n=n-1;
end
tc1=(n:0)*
T;
m=0;
while
m*T<3*T/
2
m=m+1;
end
tc2=(0:m)*T;
tc=[tc1 tc2]
k=1
while k<=length(tc)
rango=find((t>=tc(k)-P/2)&(t<=tc(k)+P/2));
y(rango)=A*cos(2*%pi*100*t(rango))
k=k+1
end
plot(t,y,'m','LineWidth',2);
xlabel('Tiempo(s)')
ylabel('Amplitud(v)')
title('Rectificacion de media onda')
xgrid

c) Sucesión de pulsos exponenciales

A=1;
T=2;
P=2;
t=-3*T/2:T/200:3*T/2;
n=0;
while n*T>-2*T
n=n-1;
end
tc1=(n:0)*T;
m=0;
while m*T<2*T
m=m+1;
end
tc2=(0:m)*T;
tc=[tc1 tc2]
k=1
y=A
while k<=length(tc)
rango=find((t>=tc(k)-P/2)&(t<=tc(k)));
y(rango)=A*abs(-sin(%pi/2*t(rango)+%pi/2))-A
rango=find((t>=tc(k))&(t<=tc(k)+P/2));
y(rango)=A*abs(cos(%pi/2*t(rango)+%pi/2))-A
k=k+1
end
plot(t,-y,'m','LineWidth',2);
xlabel('Tiempo(s)')
ylabel('Amplitud(v)')
title('Suces de pulsos exponenciales')
xgrid

d)
Pulso

trapezoidal

t=-2:0.001:12;
y=zeros(1,length(t));
A=1;
T=2;
rango=find((t>=T)&(t<=3/2*T));
y(rango)=2*A*t(rango)-2*T;
rango=find((t>=3/2*T)&(t<=5/2*T));
y(rango)=A*T;
rango=find((t>=5/2*T)&(t<=5*T));
y(rango)=-(A/5*T)*t(rango)+2*T;
plot(t,y,'b','LineWidth',2);
xlabel('Tiempo(s)')
ylabel('Amplitud(v)')
title('Pulso trapezoidal');
xgrid
e) Función Combinada

t=-2:0.001:18;
y=zeros(1,length(t));
A=1;
T=2;
rango=find((t>=0)&(t<=2*T));
y(rango)=A*-sin(%pi/8*t(rango)+%pi/2)+A;
rango=find((t>=2*T)&(t<=4*T));
y(rango)=A;
rango=find((t>=4*T)&(t<=7*T));
y(rango)=A*sin(%pi/4*t(rango)+%pi/2);
subplot(2,1,1)
plot(t,y,'b','LineWidth',2);
xlabel('TIEMPO(S)')
ylabel('AMPLITUD(V)')
title('Funcion Combinada');
xgrid
t=-18:0.001:2;
y=zeros(1,length(t))
rango=find((t>=-7*T)&(t<=-4*T));
y(rango)=A*sin(%pi/4*t(rango)+%pi/2);
rango=find((t>=-4*T)&(t<=-2*T));
y(rango)=A;
rango=find((t>=-2*T)&(t<=0));
y(rango)=A*sin(%pi/8*t(rango)-%pi/2)+A;
subplot(2,1,2)
plot(t,y,'b','LineWidth',2);
xlabel('TIEMPO(S)')
ylabel('AMPLITUD(V)')
xgrid

S-ar putea să vă placă și