0% found this document useful (0 votes)
56 views8 pages

Lab Manual # 09 (LCS) (2018-CPE-07)

This document describes a lab experiment on evaluating the effect of pole-zero location on the time response of second-order systems. It contains MATLAB code to generate step responses for systems with poles of varying real and imaginary parts. The code demonstrates how changing the pole locations affects the step response shape. The objectives are to study poles with constant real part, constant imaginary part, and both real and imaginary parts varied. Plots of multiple step responses are generated and compared each time.

Uploaded by

Momel Fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views8 pages

Lab Manual # 09 (LCS) (2018-CPE-07)

This document describes a lab experiment on evaluating the effect of pole-zero location on the time response of second-order systems. It contains MATLAB code to generate step responses for systems with poles of varying real and imaginary parts. The code demonstrates how changing the pole locations affects the step response shape. The objectives are to study poles with constant real part, constant imaginary part, and both real and imaginary parts varied. Plots of multiple step responses are generated and compared each time.

Uploaded by

Momel Fatima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Lab # 9 – Linear Control System (CPE-322)

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

>> t2=tf([0 0 10],[1 2 5])


Transfer
function:
10

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

2. Poles with constant imaginary part:


Ans.

MATLAB CODE
>> z=[];
>> p=[-1+2*j,-1-2*j];

Version 1.0 Department of Computer Engineering FE&T BZU Multan


Lab # 9 – Linear Control System (CPE-322)
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =
0 0 10
den =
1 2 5
>> t1=tf([0 0 10],[1 2 5])
Transfer
function:
10

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

3. Poles with constant real part & imaginary part:


Ans.

MATLAB CODE
>> z=[];
>> p=[-1+j,-1-j];
>> k=[10];
>> [num den]=zp2tf(z,p,k)
num =

Version 1.0 Department of Computer Engineering FE&T BZU Multan


Lab # 9 – Linear Control System (CPE-322)
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=[-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:

Version 1.0 Department of Computer Engineering FE&T BZU Multan


Lab # 9 – Linear Control System (CPE-322)
10

Version 1.0 Department of Computer Engineering FE&T BZU Multan


Lab # 9 – Linear Control System (CPE-322)

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.

Version 1.0 Department of Computer Engineering FE&T BZU Multan

You might also like