Professional Documents
Culture Documents
PROFESOR:
MSc. Ing. RICARDO ENRIQUE TRONCOSO
LABORATORIO DE CIRCUITOS IV
TABLA DE CONTENIDO
CONTENIDO
PAG
INTRODUCCIN/ ABSTRACT.....................................................................4
OBETIVOS.......................................................................................................................5
ANEXO.............................................................................................................................6
PRACTICA...........................................................................................................7
DESARROLLO DE LAPRACTICA................................................................................8
CONCLUSIONES...........................................................................................................17
BIBLIOGRAFIA.............................................................................................................18
INTRODUCCION
ABSTRAC
In the following work we will be able to know the importance singular functions in real
life since with them we can represent electrical, mechanical, electronic systems between
others, and with help of matlab represent these singular functions and see his response
in the time to different signs of entry and be able like that to shape the above mentioned
systems
OBJETIVOS
ANEXO
Anexo a este trabajo se encuentran los respectivos archivos .m que genera matlab para
que pueda revisar mi cdigo fuente de las diferentes graficas expuestas en este trabajo
mas adelante. Cada archivo esta enumerado respectivamente con su punto
correspondiente a la gua de trabajo dejada por el profesor
PRACTICA
{
{
V1 = x(t).u(t)
V2 = x(t).u(-t)
V3 = x(t-1).u(t+1)
V4 = x(t).u(t-1)
V5 = x(t).u(t+1).u(1-t)
Realizar los respectivos cdigos en matlab que muestren las graficas resultantes.
DESARROLLO DE LA PRCTICA
1. Y1(t) = r(t) 2r(t-1) + r(t-2)
Grafica de la seal
CODIGO DE MATLAB
clear all; %Borra todas las variables del espacio de trabajo.
close all;%Cierra todas las ventanas.
clc;%Limpia la pantalla.
t1= -1:0.01:6;% creamos el vector para la variable independiente.
y1= ur(t1) - 2*ur(t1-1)+ur(t1-2);%seal completa
figure(1);
plot(t1,y1,'LineWidth',4);
grid on;
axis([-0.5 2.5 -0.5 1.2]);%redimensiona el recuadro
set(gcf,'Color',[0.7,0.7,0.6]);%matriz de colores de matlab
title({'{\ity1(t)}={\itr(t)}-{2\itr(t-1)}+{2\itr(t2)}'},'FontSize',18);%Le ponemos un tlo al grfico
xlabel('t','FontSize',21);%Nombramos al eje de las abscisas
ylabel('{y1\it(t)}','FontSize',22);%nombramos al eje de la ordenadas
Grafica de la seal
CODIGO DE MATLAB
clear all;%Borra todas las variables del espacio de trabajo.
close all;%Cierra todas las ventanas.
clc;%Limpia la pantalla.
t2=-1:00.1:6;% creamos el vector para la variable independiente.
y2 = us(t2) - 0.5*ur(t2)+0.5*ur(t2-4)+us(t2-4);%seal completa
figure(2);
plot(t2,y2,'LineWidth',4);
grid on;
axis ([-1 5 -1.5 1.5]);%redimensiona el recuadro
set(gcf,'Color',[0.7,0.7,0.6]);%matriz de colores de matlab
title({'{\ity2(t)}={\itu(t)}-{1/2\itr(t)}+{1/2\itr(t-4)}+{\itu(t4)}'},'FontSize',18);%Le ponemos un tlo al grfico
xlabel('t','FontSize',21);%Nombramos al eje de las abscisas
ylabel('{y2\it(t)}','FontSize',22);%nombramos al eje de la ordenadas
Grafica de la seal
CODIGO DE MATLAB
clear all;%Borra todas las variables del espacio de trabajo.
close all;%Cierra todas las ventanas.
clc;%Limpia la pantalla.
t=-10:00.1:10;% creamos el vector para la variable independiente.
y2 = ((2/3*ur(t))-(ur(t-1))+(1/3*ur(t-2)));%seal completa
figure(3);
plot(t,y2,'LineWidth',4);
grid on;
axis ([-2 4 -.1 .7]);%redimensiona el recuadro
set(gcf,'Color',[0.7,0.7,0.6]);%matriz de colores de matlab
title({'{\ity3(t)}={2/3\itr(t)}-{\itr(t-1)}+{1/3\itr(t2)}'},'FontSize',18);%Le ponemos un tlo al grfico
xlabel('t','FontSize',21);%Nombramos al eje de las abscisas
ylabel('{y3\it(t)}','FontSize',22);%nombramos al eje de la ordenadas
10
Grafica de la seal
CODIGO DE MATLAB
clear all;%Borra todas las variables del espacio de trabajo.
close all;%Cierra todas las ventanas.
clc;%Limpia la pantalla.
t2=-1:00.1:9;% creamos el vector para la variable independiente.
y2 = -3*us(t2-5) + 3*ur(t2-6);%seal completa
figure(2);
plot(t2,y2,'LineWidth',4);
grid on;
axis ([3 9 -4 4]);%redimensiona el recuadro
set(gcf,'Color',[0.7,0.7,0.6])%matriz de colores de matlab
title({'{\ita(t)}={-3\itu(t-5)}+{3\itu(t-6)}'},'FontSize',18);%Le
ponemos un tlo al grfico
xlabel('t','FontSize',21);%Nombramos al eje de las abscisas
ylabel('{a\it(t)}','FontSize',22);%nombramos al eje de la ordenadas
11
5. a) V1 = x(t).u(t)
Graficas de las seales
CODIGO DE MATLAB
clear all;
close all;
clc;
t= -2.5:0.01:3.5;
x = 1-t
u=us(t);
%a.v2=x(t)*u(t)
v1 =x.*u;
figure(1)
subplot(1,3,1),plot(t,x,'LineWidth',2),grid on,axis([-2 3 -1 1.5])
set(gcf,'Color',[0.7,0.7,0.6])
title('Seal x(t)=1-t');
xlabel('t');
ylabel('x(t)');
subplot(1,3,2),plot(t,u,'g','LineWidth',2),grid on,axis([-2 2.5 -1
1.5])
title('Seal u(t)');
xlabel('t');
ylabel('u(t)');
subplot(1,3,3),plot(t,v1,'r','LineWidth',2),grid on,axis([-2 2.5 -1
1.5])
title('Seal v1=x(t)*u(t)');
xlabel('t');
ylabel('v1');
12
b) V2 = x(t).u(-t)
Graficas de las seales
CODIGO DE MATLAB
clear all;
close all;
clc;
t= -2.5:0.01:3.5;
x=1-t
u=us(-t);
%a.v2=x(t)*u(t)
v1 =x.*u;
figure(1)
subplot(1,3,1),plot(t,x,'b','LineWidth',2'),grid on,axis([-2 3 -1
1.5])
set(gcf,'Color',[0.7,0.7,0.6]);
title('Seal x(t)=1-t');
xlabel('t');
ylabel('x(t)');
subplot(1,3,2),plot(t,u,'m','LineWidth',2'),grid on,axis([-2 3 -1
1.5])
title('Seal u(-t)');
xlabel('t');
ylabel('u(-t)');
subplot(1,3,3),plot(t,v1,'r','LineWidth',2'),grid on,axis([-2.5 3 -1
2])
title('Seal v1=x(t)*u(-t)');
xlabel('t');
ylabel('v1');
13
c) V3 = x(t-1).u(t+1)
Graficas de las seales
CODIGO DE MATLAB
clear all;
close all;
clc;
t= -2.5:0.01:3.5;
x= (t+1).*(1-t);
u= us(t+1);
%a.v2=x(t)*u(t)
v1 = x.*u;
figure(1)
subplot(1,3,1),plot(t,x,'b','LineWidth',2'),grid on,axis([-2.5 2.5 -1
1.5])
set(gcf,'Color',[0.7,0.7,0.6])
title('Seal x(t)=1-t');
xlabel('t');
ylabel('x(t)');
subplot(1,3,2),plot(t,u,'m','LineWidth',2'),grid on,axis([-2.5 2.5 -1
1.5])
title('Seal u(t)');
xlabel('t');
ylabel('u(t)');
subplot(1,3,3),plot(t,v1,'r','LineWidth',2'),grid on,axis([-2.5 2.5 -1
1.5])
title('Seal v1=x(t)*u(t)');
xlabel('t');
ylabel('v1');
14
d) V4 = x(t).u(t-1)
Graficas de las seales
CODIGO DE MATLAB
clear all;
close all;
clc;
t= -2.5:0.01:3.5;
x=1-t
u=us(t-1);
%a.v2=x(t)*u(t)
v1 =x.*u;
figure(1)
subplot(1,3,1),plot(t,x,'b','LineWidth',2'),grid on,axis([-1 2 -1
1.5])
set(gcf,'Color',[0.7,0.7,0.6])
title('Seal x(t)=1-t');
xlabel('t');
ylabel('x(t)');
subplot(1,3,2),plot(t,u,'m','LineWidth',2'),grid on,axis([-1.5 3 -1
1.5])
title('Seal u(t-1)');
xlabel('t');
ylabel('u(t-1)');
subplot(1,3,3),plot(t,v1,'r','LineWidth',2'),grid on,axis([-1 2 -1
1.5])
title('Seal v1=x(t)*u(t-1)');
xlabel('t');
ylabel('v1');
15
e) V5 = x(t).u(t+1).u(1-t)
Graficas de las seales
CODIGO DE MATLAB
clear all;
close all;
clc;
t= -2.5:0.01:3.5;
x=1-t
u=us(t+1);
u1=us(1-t);
%a.v2=x(t)*u(t)
v1 =x.*u.*u1;
figure(1)
subplot(2,2,1),plot(t,x,'b','LineWidth',2'),grid on,axis([-2 2 -1 2])
set(gcf,'Color',[0.7,0.7,0.6])
title('Seal x(t)=1-t');
xlabel('t');
ylabel('x(t)');
subplot(2,2,2),plot(t,u,'m','LineWidth',2'),grid on,axis([-2 2 -1 2])
title('Seal u(t+1)');
xlabel('t');
ylabel('u(t+1)');
subplot(2,2,3),plot(t,u1,'g','LineWidth',2'),grid on,axis([-2 2 -1 2])
title('Seal u(1-t)');
xlabel('t');
ylabel('u(1-t)');
subplot(2,2,4),plot(t,v1,'r','LineWidth',2'),grid on,axis([-2 2 -1 2])
title('Seal v1=x(t)*u(1-t)*u(1-t)');
xlabel('t');
ylabel('v1');
16
CONCLUSIONES
Se pueden concluir que con la ayuda de matlab podemos graficar distintas
seales y funciones ya sean de primer orden o de orden n y ver su respuesta en el
tiempo
Se puede observar las diferentes propiedades de las funciones singulares como la
de desplazamiento y reflexin para asi confrontar los datos practicos con los
simulados
con ayuda de diferentes comandos en matlab como el plot, set, clear, se pueden
representar diferentes funciones o seales
17
BIBLIOGRAFIA
Seales y Sistemas continuos y discretos - 2da Edicin - Samir S. Soliman &
Mandyam D. Srinath
http://sysutpl.wordpress.com/senales/
http://www.ib.cnea.gov.ar/~instyctl/Tutorial_Matlab_esp/plot.html
http://www.mathworks.com/help/techdoc/ref/colorspec.html
18