You are on page 1of 3

EXPERIMENT:2 DATE :16/08/2019

% write a .m file to perform:


% 1.obtain poles and zeros of G(S)
% 2.characteristics equation of transfer function
% 3.obtain a transfer function of closed loop system
% 4.obtain a pole-zero map of transfer function
% G(s)=(6*s^2+1)/s^3+3*s^2+3*s+1
% H(s)=(s+1)(s+2)/(s+2i)(s-2i)(s+3)

%START
clc
clear
s = tf('s');
G = (6*s^2+1) /(s^2+3*s^2+3*s+1);
Pole = pole(G);
Zero = zero(G);
display(Pole);
display(Zero);
H = (s+1)*(s+2)/ ((s+2i)*(s-2i)*(s+3));
CE =1 + G.* H;
display(CE);
TF = G / 1+ G.*H;
Pole1 = pole(TF);
Zero1 = zero(TF);
display(Pole1);
display(Zero1);
display(TF);
pzmap(TF);
grid on

%END
Command Window

Output:

Pole =

-0.3750 + 0.3307i
-0.3750 - 0.3307i

Zero =

0.0000 + 0.4082i
0.0000 - 0.4082i

CE =

4 s^5 + 21 s^4 + 44 s^3 + 76 s^2 + 43 s + 14


--------------------------------------------
4 s^5 + 15 s^4 + 26 s^3 + 63 s^2 + 40 s + 12

Continuous-time transfer function.

Pole1 =

-3.0000 + 0.0000i
-0.0000 + 2.0000i
-0.0000 - 2.0000i
-0.3750 + 0.3307i
-0.3750 - 0.3307i
-0.3750 + 0.3307i
-0.3750 - 0.3307i

Zero1 =

-3.1827 + 0.0000i
-0.4086 + 2.0571i
-0.4086 - 2.0571i
-0.3750 + 0.3307i
-0.3750 - 0.3307i
0.0000 + 0.4082i
0.0000 - 0.4082i

TF =

24 s^7 + 114 s^6 + 250 s^5 + 505 s^4 + 335 s^3 + 165 s^2 + 49 s +
14
--------------------------------------------------------------------
16 s^7 + 72 s^6 + 153 s^5 + 345 s^4 + 375 s^3 + 231 s^2 + 76 s +
12

Continuous-time transfer function.

You might also like