Académique Documents
Professionnel Documents
Culture Documents
Desarrollo de la práctica
5.1. Desarrolle los archivos .m necesarios para cada uno de los siguientes
problemas:
A). Represente una señal cuadrada de tiempo continuo con amplitud 2, y
ciclo útil del 60%, y frecuencia 10π.
Código escrito en .m:
A = 2;
Fs = 10000;
f =5;
duty = 60;
t = 0:1/Fs:1;
x = A*square(2*pi*f*t,duty);
plot(t,x),grid on,ylim([-2.1 2.1])
GRÁFICA DE LA SEÑAL.
B). Una señal cuadrada, de amplitud 5 Volts, frecuencia fundamental 20 Hz y
ciclo útil del 60%.
Código escrito en .m:
A=5;
Fs=10000;
f=20;
duty=60;
t=-0:1/Fs:0.5;
v=A.*square(2*pi*f*t,duty);
plot(t,v),grid on,ylim([-5.1 5.1])
xlabel('tiempo(s)'),ylabel('voltaje(v)'),title('Señal Cuadrada de Voltaje')
GRÁFICA DE LA SEÑAL.
C). Una señal diente de sierra, amplitud 5 Volts y frecuencia fundamental
20Hz.
Código escrito en .m:
A=5;
Fs=10000;
f=20;
T=4.*(1/f);
width=0.5;
t=0:1/Fs:T;
v=A*sawtooth(2*pi*f*t,width);
plot(t,v),grid on,ylim([-5.5 5.1])
xlabel('tiempo(s)'),ylabel('voltaje(v)'),title('Señal de Voltaje Diente de Sierra')
GRÁFICA DE LA SEÑAL.
D). Represente una onda triangular de tiempo continuo con amplitud 3,
frecuencia 10π y pico en la mitad del periodo.
Código escrito en .m:
A = 3;
Fs = 10000;
f=5;
T=1/f;
t = -2*T:1/Fs:2*T;
x = A*tripuls(t,T);
plot(t,x,'g','LineWidth',2),grid on,ylim([-0 3])
xlabel('Tiempo (s)'),ylabel('Amplitud'), title('Señal Triángular')
GRÁFICA DE LA SEÑAL.
E). Una señal senoidal amortiguada exponencialmente
Código escrito en .m:
A=1;
f = 100;
phi = pi/2;
Fs = 10000;
t = 0:1/Fs:10;
x = A.*exp(-0.2.*t).*sin(7.*t);
plot(t,x),grid on,ylim([-2 2])
xlabel('tiempo(s)'),ylabel('Amplitud'),title('Onda Senoidal Amortiguada
Exponencialmente')
GRÁFICA DE LA SEÑAL.
π
(
F). x=−2+3 cos 20 πt +
4 )
+sin (40 πt )
GRÁFICA DE LA SEÑAL.
G). Grafique las señales anteriores en una sola gráfica y rotule cada una de
ellas con sus ejes.
%2
A2=5;
Fs=10000;
f2=20;
duty=60;
t2=-0:1/Fs:0.5;
v2=A2.*square(2*pi*f2*t2,duty);
subplot(3,2,2),plot(t2,v2),grid on,ylim([-5.1 5.1])
xlabel('tiempo(s)'),ylabel('voltaje(v)'),title('Señal Cuadrada de Voltaje 2')
%3
A3=5;
Fs=10000;
f3=20;
T3=4.*(1/f3);
width=0.5;
t3=0:1/Fs:T3;
v3=A3*sawtooth(2*pi*f3*t3,width);
subplot(3,2,3),plot(t3,v3),grid on,ylim([-5.5 5.1])
xlabel('tiempo(s)'),ylabel('voltaje(v)'),title('Señal de Voltaje Diente de Sierra 3')
%4
A4 = 3;
Fs = 10000;
f4=10.*pi;
T4=1/f4;
t4= -2*T4:1/Fs:2*T4;
x4 = A4*tripuls(t4,T4);
subplot(3,2,4),plot(t4,x4),grid on,ylim([-0 3])
xlabel('Tiempo (s)'),ylabel('Amplitud'), title('Señal Triángular 4')
%5
A5=1;
f5 = 100;
phi = pi/2;
Fs = 10000;
t5= 0:1/Fs:10;
x5 = A5.*exp(-0.2.*t5).*sin(7.*t5);
subplot(3,2,5),plot(t5,x5),grid on,ylim([-2 2])
xlabel('tiempo(s)'),ylabel('Amplitud'),title('Onda Senoidal Amortiguada
Exponencialmente 5')
%6
Fs=10000;
f6=10;
ph=pi/4;
f7=20;
t6=0:1/Fs:0.5;
x6=-2+3.*cos(2*pi*f6.*t6+ph)+sin(2*pi*f7.*t6);
subplot(3,2,6),plot(t6,x6),grid on,ylim([-7 2])
xlabel('Tiempo (s)'),ylabel('Amplitud'),title('señal 6')
GRÁFICA DE LA SEÑAL.
5.2. Genere con Simulink las señales de las figuras 1 a la 3, visualizándolas a
través de un bloque scope.
1. Señal cuadrada:
GRÁFICA DE LA SEÑAL.
5.4. Por medio de Simulink dibujar en la misma gráfica el sistema trifásico de
voltajes teniendo en cuenta los valores reales para el voltajes y las
frecuencias de la red de energía eléctrica colombiana.