You are on page 1of 14

ASS

COMSATS UNIVERSITY ISLAMABAD


ABBOTTABAD CAMPUS
Page number 0
LAB ASSIGMENT

Submitted By:
YASEEN AYAZ

Registration No:
FA18-BCE-020

Course:
CONTROL SYSTEM

Submitted To:
Dr. BILAL KHAN

Date:
April 25, 2021
Task 1: For each of the following systems determine the general form of the step
response.

400
1. G(S)= 2
S + 12 S+ 400

CODE:
%DONE BY YASEEN AYAZ
clc
clear all
close all
s=tf('s')
G=400/(s^2+12*s+400)
pole(G)
pzmap(G)
figure
step(G)

OUTPUT:

1|Page
900
2. G(S)= 2
S + 90 S +900

CODE:
% DONE BY YASEEN AYAZ

2|Page
clc
clear all
close all
s=tf('s')
G=900/(s^2+90*s+900)
pole(G)
pzmap(G)
legend('pzmap')
figure
step(G)
legend('step response')

OUTPUT:

3|Page
225
3. G(S)= 2
S + 30 S+ 225

CODE:
%DONE BY YASEEN AYAZ

4|Page
clc
clear all
close all
s=tf('s')
G=225/(s^2+30*s+225)
pole(G)
pzmap(G)
figure
step(G)

OUTPUT:

5|Page
625
4. G(S)= 2
S + 225

CODE:
%DONE BY YASEEN AYAZ
clc
clear all

6|Page
close all
s=tf('s')
G=625/(s^2+625)
pole(G)
pzmap(G)
legend('pzmap')
figure
step(G)
legend('step response')

OUTPUT:

7|Page
8|Page
Task 2: For the following feedback system, find the values or range of values of K for
which the response of the system is

a. Undamped
b. Underdamped
c. Critically damped
d. Over damped

a. Underdamped
CODE:
%DONE BY YASEEN AYAZ
clear all
close all
clc
s = tf('s')
K = 5;
G1 = K/(s*(s+1)*(s+10))
G2 = feedback(G1,1);
pole(G2)
pzmap(G2)
figure
step(G2)

OUTPUT:

9|Page
10 | P a g e
b. Critically damped
CODE:
%DONE BY YASEEN AYAZ
clear all
close all
clc
s = tf('s')
K = 0.25;
G1 = K/(s*(s+1))
G2 = feedback(G1,1);
pole(G2)
pzmap(G2)
figure
step(G2)

OUTPUT:

11 | P a g e
c. Over damped
CODE:
%DONE BY YASEEN AYAZ
clear all
close all
clc
s = tf('s')
K = 1;
G1 = K/(s*(s+1)*(s+10))
G2 = feedback(G1,1);
pole(G2)
pzmap(G2)
figure
step(G2)

OUTPUT:

12 | P a g e
13 | P a g e

You might also like