You are on page 1of 3

Lazo abierto 1 G=

>> num=[3.9998]; 4

den=[1 2.8 0 0]; -----------

G=tf(num,den) s^2 + 2.8 s

polos=roots(G.den{1}) Continuous-time transfer function.

ceros=roots(G.num{1}) H=

pzmap(G) 1

grid on Static gain.

G= RA =

4 4

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

s^3 + 2.8 s^2 s^2 + 2.8 s + 4

Continuous-time transfer function. Continuous-time transfer function.

polos = polos =

0 -1.4000 + 1.4282i

0 -1.4000 - 1.4282i

-2.8000 ceros =

ceros = Empty matrix: 0-by-1

Empty matrix: 0-by-1 Discretizacin 1

>> num=[3.9998];

Lazo cerrado 1 den=[1 2.8 0];

>> num=[3.9998]; G=tf(num,den);

den=[1 2.8 0]; H=tf(1);

G=tf(num,den) RA=feedback(G,H);

H=tf(1) fb = bandwidth(RA)

RA=feedback(G,H) TM=1/fb

step(RA)

polos=roots(RA.den{1}) Hd=c2d(RA,TM,'zoh')

ceros=roots(RA.num{1}) polos=roots(Hd.den{1})

pzmap(RA) ceros=roots(Hd.num{1})

grid on pzmap(Hd)
grid on Discrete-time transfer function.

He=c2d(RA,TM,'foh')

polos=roots(He.den{1}) polos =

ceros=roots(He.num{1})

pzmap(He) 0.3796 + 0.3249i

grid on 0.3796 - 0.3249i

Hf=c2d(RA,TM,'impulse')

polos=roots(Hf.den{1}) ceros =

ceros=roots(Hf.num{1})

pzmap(Hf) -0.6242

grid on

fb = He =

2.0177 0.1146 z^2 + 0.3189 z + 0.05691

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

z^2 - 0.7592 z + 0.2496

TM =

Sample time: 0.49563 seconds

0.4956 Discrete-time transfer function.

Hd = polos =

0.3019 z + 0.1885 0.3796 + 0.3249i

----------------------- 0.3796 - 0.3249i

z^2 - 0.7592 z + 0.2496

Sample time: 0.49563 seconds ceros =


-2.5921

-0.1916

Hf =

0.4509 z + 1.252e-17

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

z^2 - 0.7592 z + 0.2496

Sample time: 0.49563 seconds

Discrete-time transfer function.

polos =

0.3796 + 0.3249i

0.3796 - 0.3249i

ceros =

-2.7756e-17