sábado, 25 de febrero de 2012
SISTEMAS CONTINUOS
EJERCICIO:
Un circuito RL con una resistencia R=1Ω y un inductor L=1H siendo un sistema lineal con un voltaje V(t)=Bu(t) y una corriente I° Amperios. solucionar la ecuacion diferencial para B=1 y B=2 para las condiciones iniciales I°=1 y I°=0 respectivamente determine la entrada cero y la salida cero.
Un circuito RL con una resistencia R=1Ω y un inductor L=1H siendo un sistema lineal con un voltaje V(t)=Bu(t) y una corriente I° Amperios. solucionar la ecuacion diferencial para B=1 y B=2 para las condiciones iniciales I°=1 y I°=0 respectivamente determine la entrada cero y la salida cero.
Ecuaciones
- Cuando B=1 and I°=1
Comando en MATLAB
>> t=0:0.001:1;
>> B=1;
>> I=1;
>> Izs=B*(1-exp(-t));
>> Izi=I*exp(-t);
>> It=Izs+Izi;
>> plot(t,It);
>> grid on
>> xlabel('t(s)')
>> ylabel('I')
>> title('grafica de la corriente del circuito')
GRAFICA:
Comando en MATLAB:
>> Izs=B*(1-exp(-t));
>> ylabel('Izs')
>> title('grafica Izs')
>> xlabel('t(s)')
>> plot(t,Izs);
>> title('grafica Izs')
>> xlabel('t(s)')
>> ylabel('Izs')
>> grid on
GRAFICA:
Comando en MATLAB:
>> Izi=I*exp(-t);
>> plot(t,Izi);
>> grid on
>> ylabel('Izi')
>> xlabel('t(s)')
>> title('grafica Izi')
GRAFICA:
- Cuando I°=1 and B=2
Comando en MATLAB:
>> t=0:0.001:1;
>> I=1;
>> B=2;
>> Izi=I*exp(-t);
>> Izs=B*(1-exp(-t));
>> It=Izs+Izi;
>> plot(t,It);
>> xlabel('t(s)')
>> ylabel('I')
>> title('grafica de la corriente del circuito')
>> grid on
GRAFICA:
Comando en MATLAB:
>> Izs=B*(1-exp(-t));
>> plot(t,Izs);
>> grid on
>> xlabel('t(s)')
>> ylabel('Izs')
>> title('grafica Izs')
GRAFICA:
Comando en MATLAB:
>> Izi=I*exp(-t);
>> plot(t,Izi);
>> ylabel('Izi')
>> xlabel('t(s)')
>> title('grafica Izi')
>> grid on
GRAFICA:
- Cuando I°=0 and B=1
Comando en MATLAB:
>> t=0:0.001:1;
>> I=0;
>> B=1;
>> Izi=I*exp(-t);
>> Izs=B*(1-exp(-t));
>> It=Izs+Izi;
>> plot(t,It);
>> xlabel('t(s)')
>> ylabel('It')
>> title('grafica de la corriente del circuito')
>> grid on
GRAFICA:
Comando en MATLAB
>> Izs=B*(1-exp(-t));
>> plot(t,Izs);
>> ylabel('Izs')
>> xlabel('t(s)')
>> title('grafica Izs')
>> grid on
GRAFICA
Comando en MATLAB:
>> Izi=I*exp(-t);
>> plot(t,Izi);
>> title('grafica Izi')
>> xlabel('t(s)')
>> ylabel('Izi')
>> grid on
GRAFICA:
- Cuando I°=0 and B=2
Comando en MATLAB
>> t=0:0.001:1;
>> I=0;
>> B=2;
>> Izi=I*exp(-t);
>> Izs=B*(1-exp(-t));
>> It=Izs+Izi;
>> plot(t,It);
>> ylabel('It')
>> xlabel('t(s)')
>> title('grafica de la corriente del circuito')
>> grid on
GRAFICA:
Comando en MATLAB
>> Izs=B*(1-exp(-t));
>> plot(t,Izs);
>> xlabel('t(s)')
>> ylabel('Izs')
>> title('grafica Izs')
>> grid on
GRAFICA:
Comando en MATLAB:
>> Izi=I*exp(-t);
>> plot(t,Izi);
>> title('grafica Izi')
>> ylabel('Izi')
>> xlabel('t(s)')
>> grid on
GRAFICA:
¡GRACIAS POR SU VISITA!
lunes, 13 de febrero de 2012
SEÑALES PAR O IMPAR
Mi señal escogida para el ejercicio planteado es: x(t) = 5cos(8t)
>> t=[0:2:25];
>> %mi funcion
>> x=2*cos((8*t));
>> plot(t,x)
>> ylabel('x(t)')
>> xlabel('t(s)')
>> title('2cos(8t)')
para sumarle a la señal una costante donde a puede ser a=3
>> a=3;
>> %funcion y(t);
>> y=a+2*cos((8*t));
>> plot(t,y)
>> ylabel('y(t)')
>> xlabel('t(s)')
>> title('a+2cos(8t)')
>> %calculos
>> w=8;
>> T=(2*pi/w)
T =
0.7854
>> %luego T°=NT
>> T=(4*(pi))/4
T =
3.1416
>> %es mi nuevo periodo
luego mi w=2
grafica z(t):
>> %otra señal
>> v=sin((2*t));
>> z=x+v;
>> plot(t,z)
>> ylabel('z(t)')
>> xlabel('t(s)')
>> title('z(t)=x(t)+v(t)')
>> u=sin((7*t));
>> r=x+u;
>> plot(t,r)
>> xlabel('t(s)')
>> ylabel('r(t)')
>> title('r(t)=x(t)+u(t)')
por ahora esto es todo gracias.....
- Grafica de la funcion x(t)
- comandos en MATLAB
>> t=[0:2:25];
>> %mi funcion
>> x=2*cos((8*t));
>> plot(t,x)
>> ylabel('x(t)')
>> xlabel('t(s)')
>> title('2cos(8t)')
- punto de a del ejercicio:
para sumarle a la señal una costante donde a puede ser a=3
- funcion y(t):
- grafica de la señal y(t):
- comandos en MATLAB
>> a=3;
>> %funcion y(t);
>> y=a+2*cos((8*t));
>> plot(t,y)
>> ylabel('y(t)')
>> xlabel('t(s)')
>> title('a+2cos(8t)')
>> %calculos
>> w=8;
>> T=(2*pi/w)
T =
0.7854
>> %luego T°=NT
>> T=(4*(pi))/4
T =
3.1416
>> %es mi nuevo periodo
luego mi w=2
- puneto b del ejercicio:
grafica z(t):
>> %otra señal
>> v=sin((2*t));
>> z=x+v;
>> plot(t,z)
>> ylabel('z(t)')
>> xlabel('t(s)')
>> title('z(t)=x(t)+v(t)')
- punto c del ejercicio:
- comandos en MATLAB
>> u=sin((7*t));
>> r=x+u;
>> plot(t,r)
>> xlabel('t(s)')
>> ylabel('r(t)')
>> title('r(t)=x(t)+u(t)')
por ahora esto es todo gracias.....
Suscribirse a:
Entradas (Atom)