You are on page 1of 11

Control System

LAB#7

Name
Mohsin Ali

Registration
Number FA19-BCE-028

BCE 6A
Class

Instructor’s Name
Dr. Ali Khaqan
Lab # 7 Effect of Zeros on 2nd Order Systems Response,
Pole Zero Cancellation and Stability Analysis

Task1:

CODE:
s = tf('s');
D= ((s^2)+(2*s)+9);
G1=2/D;
G2=((s+3)*(2))/D;
G3=((s+5)*(2))/D;
G4 =((s+10)* (2))/D;
step(G1, G2, G3, G4);
[wn.z.p]=damp (G1)
[wn,z,p]=damp (G2)
[wn,z,p] =damp (G3)
[ wn,z,p]= damp (G4)

G1:
wn =
3.0000
3.0000
z=
0.3333
0.3333
p=
-1.0000 + 2.8284i
-1.0000 - 2.8284i
G2:
wn =
3.0000
3.0000
z=
0.3333
0.3333
p=
-1.0000 + 2.8284i
-1.0000 - 2.8284i
G3:
wn =
3.0000
3.0000
z=
0.3333
0.3333
p=
-1.0000 + 2.8284i
-1.0000 - 2.8284i

SIMULATION:

G1:

G2:
G3:

G4:
Task2:

CODE:
s = tf('s');
D=((s^2)+(2*s)+4);

G1= (s+4)/D;

G2=(-s+4)/D;

G3 =(s-4)/D;
step(G1, G2,G3);

[wn,z,p]=damp (G1)

[wn,z,p]=damp (G2)
[wn,z,p]=damp (G3)

G1:

wn =
2.0000
2.0000
z=
0.5000
0.5000
p=

-1.0000 + 1.7321i
-1.0000 - 1.7321i

G2:
wn =
2.0000
2.0000
z=
0.5000
0.5000
p=
-1.0000 + 1.7321i
-1.0000 - 1.7321i
G3:
wn =
2.0000
2.0000
z=
0.5000
0.5000
p=
-1.0000 + 1.7321i
-1.0000 - 1.7321i

SIMULATION:

G1:

G2:
G3:
PostLab
Task3:

CODE:
s = tf('s');
G1= (-(s-5)) / ((s-4.99) *(s+6));
G2=(-1 / (s+6);
subplot(1,2,1)
step (G1);
legend('(-(s-5)) / ((s-4.99) *(s+6))')
subplot(1,2,2);
step (G2);
legend('-1 / (s+6)')
SIMULATION:

In this system pole zero cancellation is not possible because the response of the
system with cancellation and with cancellation of same term is not same.
CODE:
s = tf('s');
G1= (s+5) /((s+4.99)*(s+6));
G2 = 1/(s+6);
subplot(1,2,1)
step (G1);
legend('((s+5)) / ((s+4.99) *(s+6))')
subplot(1,2,2);
step (G2);
legend('1/ (s+6)')

SIMULATION:

In this system pole zero cancellation is possible because the response of the
system with cancellation and with cancellation of same term is same

Conclusion:
In this lab we have learned about the effect of zeros on response of second
order system we analysis the effect of addition zeros on the damping ratio
overshoot, peak time etc. We also learned the concept of pole zero cancellation
we can cancel the same pole zero if the response of with cancel and without
cancel the pole zero is same.

You might also like