Académique Documents
Professionnel Documents
Culture Documents
1 PRACTICA DE LABORATORIO
II. OBJETIVOS:
1 Computadora personal
Software Matlab
IV. PROCEDIMIENTO:
Matlab Script:
A=input('Ingrese Amplitud, A = ');
f=input('Ingrese Frecuencia en Hertz, f = ');
p=input('Ingrese Fase en radianes, p = ');
t1=input('Ingrese Inicio de la Seal, t1 = ');
t2=input('Ingrese Fin de la Seal, t2 = ');
t=t1:0.01/f:t2;
x=A*sin(2*pi*f*t+p);
y=A*cos(2*pi*f*t+p);
subplot(2,1,1);
plot(t,x,'r')
title('Onda Seno');
grid;
subplot(2,1,2);
plot(t,y,'b')
title('Onda Coseno');
grid;
Onda Seno
5
-5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Onda Coseno
5
-5
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
En Simulink:
Tiempo de Simulacin: 50
mseg
Parametros:
Amplitud
de la Seal
Desplazamiento
en el eje Y
Frecuencia
en rad/seg
Fase (coseno se
desfaza pi/2 del seno)
Tiempo de muestreo
(Ts=0.001/f, f en Hz)
Grficas:
Seno
Coseno
V. CUESTIONARIO:
Plot, subplot, hold on, hold off, grid on, xlabel, ylabel, axis.
El Docente
Ing. Oscar De La Cruz Rodrguez