Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Page |1

LAB 6 REPORT

COURSE TITLE: CONTROL SYSTEMS

SUBMITTED BY: TAJDAR HAIDER

REG. NO: FA16-EPE-057

SUBMITTED TO: SIR DR. SHAHID MUSTAFA

SUBMISSION DATE: MAY 06, 2019

COMSATS UNIVERSITY ISLAMABAD,


ABBOTTABAD CAMPUS
TASK 1:
Page |2

Find the pole location, rise time and settling time of the following system.
A. G(s)=1/(s+1)
B. G(s)=5/(s+2)
(A)CODE:

num=[1]
den=[1 1];
sys=tf(num,den)
pole(sys)
zero(sys)
pzmap(sys);
legend('pole zero map for system 1/s+1')
figure
step(sys);
grid on
legend('step response for system 1/s+1')
stepinfo(sys)
output
RiseTime: 2.1983
SettlingTime: 3.9124
SettlingMin: 0.9028
SettlingMax: 1.0000
Overshoot: 0
Undershoot: 0
Peak: 1.0000
PeakTime: 10.4907

(B)CODE:
Page |3

clc
clear all;
close all;
num=[5]
den=[1 2];
sys=tf(num,den)
pole(sys)
zero(sys)
pzmap(sys);
legend('pole zero map for system 5/s+2')
figure
step(sys);
grid on
legend('step response for system 5/s+2')
stepinfo(sys)
output
RiseTime: 1.0991
SettlingTime: 1.9562
SettlingMin: 2.2571
SettlingMax: 2.4999
Overshoot: 0
Undershoot: 0
Peak: 2.4999
PeakTime: 5.2453

TASK 2:
Page |4

For the RC circuit given below, find equation for output voltage, pole location, rise time and
settling time when the applied voltage is Vi (t) = step voltage, For the circuit R = 50Ω and C =
5mF.

CODE:

clc
clear all;
close all;
num=[1]
den=[0.25 1];
sys=tf(num,den)
pole(sys)
zero(sys)
pzmap(sys);
legend('pole zero map for system 1/0.25s+1')
figure
step(sys);
grid on
legend('step response for system 1/0.25s+1')
stepinfo(sys)

OUTPUT:

RiseTime: 0.5496
SettlingTime: 0.9781
SettlingMin: 0.9028
SettlingMax: 1.0000
Overshoot: 0
Undershoot: 0
Peak: 1.0000
PeakTime: 2.622

TASK 3:
Page |5

In this task students will study changes occur in angular velocity when location of pole is varied,
where location of pole is dependent on different parameters of the system. Take K=1 and vary α
from 1 to 5 and study the variation in response then take K=5, vary α from 1 to 5 and study the
effect. Use step input and write your observations.

Code:
clc
clear all
close all
k=1;
a=1;
num=[1]
den=[1 1];
sys=tf(num,den)
pole(sys)
zero(sys)
pzmap(sys);
legend('pole zero map for system 1/1s+1')
figure
step(sys);
grid on
legend('step response for system 1/1s+1')
stepinfo(sys)

OUTPUT
RiseTime: 2.1983
SettlingTime: 3.9124
SettlingMin: 4.5141
SettlingMax: 4.9999
Overshoot: 0
Undershoot: 0
Peak: 4.9999
PeakTime: 10.4907

You might also like