Está en la página 1de 39

Año de la Inversión para el Desarrollo Rural y la Seguridad Alimentaria”

UNIVERSIDAD NACIONAL MAYOR DE SAN


MARCOS

FACULTAD DE INGENIERIA ELECTRÓNICA Y


ELÉCTRICA

Tema: “ANALISIS DE LA RESPUESTA TRANSITORIA”

CURSO : Sistemas de Control I

PROFESORA : HILDA NUÑEZ VILLACORTA

ALUMNO : Buitrón Durand Alexis 08190037

2013
FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Preguntas propuestas:

1. Análisis en Matlab. 1:

 Obtener la respuesta a la Entrada Escalón Unitario de los sistemas


citados en el Apéndice 1.

 Obtener la Respuesta Impulsional de sistemas citados en el Apéndice 1.

 Obtener la respuesta a la Rampa Unitaria de sistemas citados en el


Apéndice 1.

1.1) Un polo sin cero:


>> ceros=[];

>> polos=[3];

>> k1=1;

>> f1=zpk(ceros,polos,k1)

Zero/pole/gain:

1
-----
(s-3)
>> figure (1)

>> step(f1)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> figure (2)

>> impulse(f1)

1.2) Dos polos reales sin cero:


>> ceros=[];

>> polos=[2 -5];

>> k1=1;

>> f2=zpk(ceros,polos,k1)

Zero/pole/gain:

1
-----------
(s-2) (s+5)

>> figure(1)

>> step(f2)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> figure(2)

>> impulse(f2)

1.3) Tres polos reales sin cero:


>> ceros=[];

>> polos=[2 -4 0];

>> k1=1;

>> g2=zpk(ceros,polos,k1);

>> g2=zpk(ceros,polos,k1)

Zero/pole/gain:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

1
-------------
s (s-2) (s+4)

>> figure(1)

>> step(g2)

>> figure(2)

>> impulse(g2)

1.4) Dos polos complejos conjugados y un cero real:


>> ceros=[2];

>> polos=[2+3i 2-3i];

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> k1=1;

>> f3=zpk(ceros,polos,k1)

Zero/pole/gain:

(s-2)
---------------
(s^2 - 4s + 13)

>> figure(1)

>> step(f3)

>> figure(2)

>> impulse(f3)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

1.5) Un polo y un cero:


> ceros=[-4];

>> polos=[2];

>> k1=1;

>> f4=zpk(ceros,polos,k1)

Zero/pole/gain:

(s+4)
-----
(s-2)

>> figure(1)

>> step(f4)

>> figure(2)

>> impulse(f4)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

1.6) Un polo real, dos polos complejos conjugados y dos ceros reales:
>> ceros=[4 -6];

>> polos=[-2 5+i 5-i];

>> k1=1;

>> f5=zpk(ceros,polos,k1)

Zero/pole/gain:

(s-4) (s+6)
----------------------
(s+2) (s^2 - 10s + 26)

>> figure(1)

>> step(f5)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> figure(2)

>> impulse(f5)

1.7) Un polo real, dos polos complejos conjugados y dos ceros


complejos conjugados:
>> ceros=[4+3i 4-3i];

>> polos=[0 -2+7i -2-7i];

>> k1=1;

>> f6=zpk(ceros,polos,k1)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Zero/pole/gain:

(s^2 - 8s + 25)

-----------------

s (s^2 + 4s + 53)

>> figure(1)

>> step(f6)

>> figure(2)

>> impulse(f6)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

1.8) Dos polos complejos conjugados, dos ceros complejos conjugados,


un polo real y un cero real:
>> ceros=[5 2+9i 2-9i];

>> polos=[1 3+i 3-i];

>> k1=1;

>> f7=zpk(ceros,polos,k1)

Zero/pole/gain:

(s-5) (s^2 - 4s + 85)


---------------------
(s-1) (s^2 - 6s + 10)

>> figure(1)

>> step(f7)

>> figure(2)

>> impulse(f7)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2. Análisis en SimulinK

 Obtener la respuesta a la Entrada Escalón Unitario de los sistemas citados en el


Apéndice 1.
 Obtener la Respuesta Impulsional de los sistemas citados en el Apéndice 1.
 Obtener la respuesta a la Rampa Unitaria de los sistemas citados en el
Apéndice 1

2.1) PARA UNA ENTRADA ESCALON UNITARIO:

2.1.1) Un polo sin cero:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.1.2) Dos polos reales sin cero:

2.1.3) Tres polos reales sin cero:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.1.4) Dos polos complejos conjugados y un cero real:

2.1.5) Un polo y un cero:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.1.6) Un polo real, dos polos complejos conjugados y dos ceros reales:

2.1.7) Un polo real, dos polos complejos conjugados y dos ceros


complejos conjugados:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.2) PARA UNA ENTRADA RAMPA UNITARIA:

2.2.1) Un polo sin cero:

2.2.2) Dos polos reales sin cero:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.2.3) Tres polos reales sin cero:

2.2.4) Dos polos complejos conjugados y un cero real

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.2.5) Un polo y un cero

2.2.6) Un polo real, dos polos complejos conjugados y dos ceros reales

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

2.2.7) Un polo real, dos polos complejos conjugados y dos ceros


complejos conjugados

3. Dado la función de transferencia de un sistema de segundo orden

G(s) = k*Wn^2 / (S^2 + 2 zeta*wn S + Wn^2)

3.1) Obtener las gráficas de la respuesta de G(s) a una entrada escalón,


impulso y rampa. Para zeta = 0, 0.2, 0.4, 0.6, 0.8, 1, 2 - En una sola
gráfica. Usando Matlab

3.1.1) PARA UNA ENTRADA ESCALON:


>> s=tf('s');

>> k=1;

>> wn=2;

>> num=[k*wn^2];

>> %e=0

>> e=0;

>> den1=[1 2*e*wn wn^2];

>> F1=tf(num,den1)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Transfer function:

4
-------
s^2 + 4

>> %e=0.2

>> e=0.2;

>> den2=[1 2*e*wn wn^2];

>> F2=tf(num,den2)

Transfer function:

4
---------------
s^2 + 0.8 s + 4

>> %e=0.4

>> e=0.4;

>> den3=[1 2*e*wn wn^2];

>> F3=tf(num,den3)

Transfer function:

4
---------------
s^2 + 1.6 s + 4

>> %e=0.6

>> e=0.6;

>> den4=[1 2*e*wn wn^2];

>> F4=tf(num,den4)

Transfer function:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

4
---------------
s^2 + 2.4 s + 4

>> %e=0.8

>> e=0.8;

>> den5=[1 2*e*wn wn^2];

>> F5=tf(num,den5)

Transfer function:

4
---------------
s^2 + 3.2 s + 4

>> %e=1.2

>> e=1.2;

>> den6=[1 2*e*wn wn^2];

>> F6=tf(num,den6)

Transfer function:

4
---------------
s^2 + 4.8 s + 4

>> numa=[1 1];

>> dena=[1 1];

>> G=tf(numa,dena)

Transfer function:

s+1
-----
s+1

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> step(G);

>> hold on

>> step(F1)

>> hold on

>> step(F2)

>> hold on

>> step(F3)

>> hold on

>> step(F4)

>> hold on

>> step(F5)

>> hold on

>> step(F6)

>> title('respuesta a una entrada escalon unitaria de la funcion


G(s)=k*wn^2/(s^2+2*e*wn*s+wn^2), cuando wn=3, e=0, 0.2, 0.4, 0.6, 0.8, 1.2')

>> grid

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

3.1.2) PARA UNA ENTRADA IMPULSIONAL:


>> s=tf('s');

>> k=1;

>> wn=2;

>> num=[k*wn^2];

>> %e=0

>> e=0;

>> den1=[1 2*e*wn wn^2];

>> F1=tf(num,den1)

Transfer function:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

-------
s^2 + 4

>> %e=0.2

>> e=0.2;

>> den2=[1 2*e*wn wn^2];

>> F2=tf(num,den2)

Transfer function:

4
---------------
s^2 + 0.8 s + 4

>> %e=0.4

>> e=0.4;

>> den3=[1 2*e*wn wn^2];

>> F3=tf(num,den3)

Transfer function:

4
---------------
s^2 + 1.6 s + 4

>> %e=0.6

>> e=0.6;

>> den4=[1 2*e*wn wn^2];

>> F4=tf(num,den4)

Transfer function:

4
---------------
s^2 + 2.4 s + 4

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> %e=0.8

>> e=0.8;

>> den5=[1 2*e*wn wn^2];

>> F5=tf(num,den5)

Transfer function:

4
---------------
s^2 + 3.2 s + 4

>> %e=1.2

>> e=1.2;

>> den6=[1 2*e*wn wn^2];

>> F6=tf(num,den6)

Transfer function:

4
---------------
s^2 + 4.8 s + 4

>> numa=[1 1];

>> dena=[1 1];

>> G=tf(numa,dena)

Transfer function:

s+1
-----
s+1

>> impulse(G)

>> hold on

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> impulse(F1)

>> hold on

>> impulse(F2)

>> hold on

>> impulse(F3)

>> hold on

>> impulse(F4)

>> hold on

>> impulse(F5)

>> hold on

>> impulse(F6)

>> title('respuesta a una entrada impulsional de la funcion


G(s)=k*wn^2/(s^2+2*e*wn*s+wn^2), cuando wn=3, e=0, 0.2, 0.4, 0.6, 0.8, 1.2')

>> grid

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

3.1.3) PARA UNA ENTRAPA RAMPA:


>> s=tf('s');

>> k=1;

>> wn=2;

>> num=[k*wn^2];

>> %e=0

>> e=0;

>> den1=[1 2*e*wn wn^2 0];

>> F1=tf(num,den1)

Transfer function:

4
---------
s^3 + 4 s

>> %e=0.2

>> e=0.2;

>> den2=[1 2*e*wn wn^2 0];

>> F2=tf(num,den2)

Transfer function:

4
-------------------
s^3 + 0.8 s^2 + 4 s

>> %e=0.4

>> e=0.4;

>> den3=[1 2*e*wn wn^2 0];

>> F3=tf(num,den3)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Transfer function:

4
-------------------
s^3 + 1.6 s^2 + 4 s

>> %e=0.6;

>> e=0.6;

>> den4=[1 2*e*wn wn^2 0];

>> F4=tf(num,den4)

Transfer function:

4
-------------------
s^3 + 2.4 s^2 + 4 s

>> %e=0.8;

>> e=0.8;

>> den5=[1 2*e*wn wn^2 0];

>> F5=tf(num,den5)

Transfer function:

4
-------------------
s^3 + 3.2 s^2 + 4 s

>> %e=1.2;

>> e=1.2;

>> den6=[1 2*e*wn wn^2 0];

>> F6=tf(num,den6)

Transfer function:

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

-------------------
s^3 + 4.8 s^2 + 4 s

>> numa=[1];

>> dena=[1 0];

>> G=tf(numa,dena)

Transfer function:

1
-
s

>> step(G)

>> hold on

>> step(F1)

>> hold on

>> step(F2)

>> hold on

>> step(F3)

>> hold on

>> step(F4)

>> hold on

>> step(F5)

>> hold on

>> step(F6)

>> title('respuesta a una entrada rampa de la funcion


G(s)=k*wn^2/(s^2+2*e*wn*s+wn^2), cuando wn=3, e=0, 0.2, 0.4, 0.6, 0.8, 1.2')

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> grid

4) Obtener las graficas de la respuesta de G(s) a una entrada escalón,


impulso y rampa para Wn = 1, 2, 3, 4 - En una sola grafica, Usando Matlab

4.1.1) PARA UNA ENTRADA ESCALON UNITARIA:


>> s=tf('s');

>> k=1;

>> e=0.6;

>> %wn=1

>> wn=1;

>> num1=[k*wn^2];

>> den1=[1 2*e*wn wn^2];

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> F1=tf(num1,den1)

Transfer function:

1
---------------
s^2 + 1.2 s + 1

>> %wn=2

>> wn=2;

>> num2=[k*wn^2];

>> den2=[1 2*e*wn wn^2];

>> F2=tf(num2,den2)

Transfer function:

4
---------------
s^2 + 2.4 s + 4

>> %wn=3

>> wn=3;

>> num3=[k*wn^2];

>> den3=[1 2*e*wn wn^2];

>> F3=tf(num3,den3)

Transfer function:

9
---------------
s^2 + 3.6 s + 9

>> %wn=4

>> wn=4;

>> num4=[k*wn^2];

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> den4=[1 2*e*wn wn^2];

>> F4=tf(num4,den4)

Transfer function:

16
----------------
s^2 + 4.8 s + 16

>> numa=[1 1];

>> dena=[1 1];

>> G=tf(numa,dena)

Transfer function:

s+1
-----
s+1

>> step(G)

>> hold on

>> step(F1)

>> hold on

>> step(F2)

>> hold on

>> step(F3)

>> hold on

>> step(F4)

>> title('respuesta a una entrada escalon unitaria de la funcion


G(s)=k*wn^2/(s^2+2*e*wn*s+wn^2), cuando e=0.4 , w= 1, 2, 3, 4')

>> grid

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

4.1.2) PARA UNA ENTRADA IMPULSIONAL:


>> s=tf('s');

>> k=1;

>> e=0.6;

>> %wn=1

>> wn=1;

>> num1=[k*wn^2];

>> den1=[1 2*e*wn wn^2];

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> F1=tf(num1,den1)

Transfer function:

1
---------------
s^2 + 1.2 s + 1

>> %wn=2

>> wn=2;

>> num2=[k*wn^2];

>> den2=[1 2*e*wn wn^2];

>> F2=tf(num2,den2)

Transfer function:

4
---------------
s^2 + 2.4 s + 4

>> %wn=3

>> wn=3;

>> num3=[k*wn^2];

>> den3=[1 2*e*wn wn^2];

>> F3=tf(num3,den3)

Transfer function:

9
---------------
s^2 + 3.6 s + 9

>> %wn=4

>> wn=4;

>> num4=[k*wn^2];

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> den4=[1 2*e*wn wn^2];

>> F4=tf(num4,den4)

Transfer function:

16
----------------
s^2 + 4.8 s + 16

>> numa=[1 1];

>> dena=[1 1];

>> G=tf(numa,dena)

Transfer function:

s+1
-----
s+1

>> impulse(G)

>> hold on

>> impulse(F1)

>> hold on

>> impulse(F2)

>> hold on

>> impulse(F3)

>> hold on

>> impulse(F4)

>> title('respuesta a una entrada escalon unitaria de la funcion


G(s)=k*wn^2/(s^2+2*e*wn*s+wn^2), cuando e=0.4 , w= 1, 2, 3, 4')

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> grid

4.1.3) PARA UNA ENTRADA RAMPA:


>> s=tf('s');

>> k=1;

>> e=0.6;

>> %wn=1

>> wn=1;

>> num1=[k*wn^2];

>> den1=[1 2*e*wn wn^2 0];

>> F1=tf(num1,den1)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Transfer function:

1
-----------------
s^3 + 1.2 s^2 + s

>> %wn=2

>> wn=2;

>> num2=[k*wn^2];

>> den2=[1 2*e*wn wn^2 0];

>> F2=tf(num2,den2)

Transfer function:

4
-------------------
s^3 + 2.4 s^2 + 4 s

>> %wn=3

>> wn=3;

>> num3=[k*wn^2];

>> den3=[1 2*e*wn wn^2 0];

>> F3=tf(num3,den3)

Transfer function:

9
-------------------
s^3 + 3.6 s^2 + 9 s

>> %wn=4

>> wn=4;

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

>> num4=[k*wn^2];

>> den4=[1 2*e*wn wn^2 0];

>> F4=tf(num4,den4)

Transfer function:

16
--------------------
s^3 + 4.8 s^2 + 16 s

>> numa=[1 ];

>> dena=[1 0];

>> G=tf(numa,dena)

Transfer function:

1
-
S

>> step(G)

>> hold on

>> step(F1)

>> hold on

>> step(F2)

>> hold on

>> step(F3)

>> hold on

>> step(F4)

Alexis Buitrón Durand


FIEE-UNMSM LABORATORIO – SISTEMAS DE CONTROL I

Alexis Buitrón Durand

También podría gustarte