Lab Manual # 09 (LCS) (2018-CPE-07)
Lab Manual # 09 (LCS) (2018-CPE-07)
Lab Manual # 9
Objective:
To evaluate the effect of pole-zero location on the time resposnse of 2nd order system
1. Poles with constant real part:
Ans.
MATLAB CODE
>> z=[];
>> p=[-1+j,-1-j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 2 2
>> t1=tf([0 0 10],[1 2 2])
Transfer
function:
10
s^2 + 2 s + 2
>> step(t1)
>> z=[];
>> p=[-1+2*j,-1-2*j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 2 5
s^2 + 2 s + 5
>> step(t2)
>> z=[];
Version 1.0 Department of Computer Engineering FE&T BZU Multan
Lab # 9 – Linear Control System (CPE-322)
>> p=[-1+3*j,-1-3*j];
>> k=[10];
>>[num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 2 10
>> t3=tf([0 0 10],[1 2 10])
Transfer
function:
10
s^2 + 2 s + 10
>> step(t3)
>> step(t1,t2,t3)
>> legend('-1+j,-1-j','-1+2*j,-1-2*j','-1+3*j,-1-3*j')
OUTPUT
MATLAB CODE
>> z=[];
>> p=[-1+2*j,-1-2*j];
s^2 + 2 s + 5
>> step(t1)
>> z=[];
>> p=[-2+2*j,-2-2*j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 4 8
>> t2=tf([0 0 10],[1 4 8])
Transfer
function:
10
s^2 + 4 s + 8
>> step(t2)
>> z=[];
>> p=[-3+2*j,-3-2*j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
Version 1.0 Department of Computer Engineering FE&T BZU Multan
Lab # 9 – Linear Control System (CPE-322)
1 6 13
>> t3=tf([0 0 10],[1 6 13])
Transfer
function:
10
s^2 + 6 s + 13
>> step(t3)
>> step(t1,t2,t3)
>> legend('-1+2*j,-1-2*j','-2+2*j,-2-2*j','-3+2*j,-3-2*j')
OUTPUT
MATLAB CODE
>> z=[];
>> p=[-1+j,-1-j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
s^2 + 2 s + 2
>> step(t1)
>> z=[];
>> p=[-2+2j,-2-2j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 4 8
>> t2=tf([0 0 10],[1 4 8])
Transfer
function:
10
s^2 + 4 s + 8
>> step(t2)
>> p=[-3+3*j,-3-3*j];
>> z=[];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 6 18
>> t3=tf([0 0 10],[1 6 18])
Transfer
function:
s^2 + 6 s + 18
>> step(t3)
>> step(t1,t2,t3)
>> legend('-1+j,-1-j','-2+2*j,-2-2*j','-3+3*j,-3-3*j')
OUTPUT
Comments:
In this lab we learnt how to evaluate the effect of pole-zero location on the time
response of 2nd order system. We also learnt about the effect of pole-zero location on the
time response of 2nd order system. We perform this code on MATLAB and we checked that
how the poles will be varying with real and imaginary parts. Now I able to perform the effect
of pole-zero location on the time response of 2nd order system manually as well as on
MATLAB.