Find Step Response of Second Order System: Object: Exercise
Find Step Response of Second Order System: Object: Exercise
s=tf('s')
n1=[21];
d1=[1 1 21];
n2=[31];
d2=[1 1 31];
n3=[61];
d3=[1 1 61];
n4=[111];
d4=[1 1 111];
subplot(2,2,1)
step(n1,d1)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,2,2)
step(n2,d2)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,2,3)
step(n3,d3)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,2,4)
step(n4,d4)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
Step Response
Step Response
Mpt
Mpt
1.5
Ts
Tr
Css
Amplitude
Amplitude
1.5
0.5
Ts
1 Tr
0.5
10
12
Time (sec)
10
12
Step Response
2
Mpt
Mpt
1.5
Ts
1 Tr
Css
0.5
Amplitude
1.5
Amplitude
6
Time (sec)
Step Response
2
Css
Ts
1 Tr
Css
0.5
6
Time (sec)
10
12
10
12
Time (sec)
Control System
K
10
20
50
100
% overshoot
Meas.
Calc.
70.8
69.8
75.5
74.5
81.6
80.6
86
85
Rise time
Meas.
Calc.
0.244
0.212
0.198
0.174
0.138
0.120
0.101
0.098
Settling time
Meas.
Calc.
7.7
8
7.48
8
7.71
8
7.78
8
SS time
Meas.
Calc.
1
1
1
1
1
1
1
1
B(i) Generate the system response for =10, 20, 50, 100 due to step input.
B(ii) Find %overshoot, rise time, settling time and steady state time.
s=tf('s')
n1=[1];
d1=[1 0.2 2];
n2=[1];
d2=[1 0.8 2];
n3=[1];
d3=[1 1.4 2];
n4=[1];
d4=[1 2 2];
n5=[1];
d5=[1 4 2];
subplot(2,3,1)
step(n1,d1)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,3,2)
step(n2,d2)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,3,3)
step(n3,d3)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,3,4)
step(n4,d4)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
subplot(2,3,5)
step(n5,d5)
gtext('Tr')
gtext('Mpt')
gtext('Ts')
gtext('Css')
Control System
Step Response
1
Step Response
0.8
0.6
Ts
Tr
Css
0.4
Ts
Tr
Css
0.4
0.2
0.2
20
40
60
Amplitude
0.6
Amplitude
Amplitude
Mpt
0.8
Step Response
0.8
Mpt
Mpt
0.6
0.4
0.2
Time (sec)
10
15
Time (sec)
Step Response
Step Response
0.8
Ts Css
Tr
Mpt
0.5
10
Time (sec)
Ts Css
Tr
Amplitude
Tr
Mpt
Ts
Css
0.4
0.2
Amplitude
0.4
0.6
0.3
0.2
0.1
Time (sec)
0.1
0.4
0.7
1
2
% overshoot
Meas.
79.9
39.6
16.7
4.32
------
10
Time (sec)
Calc.
72.9
36.2
14.7
3.8
rise time
Meas.
0.76
0.925
1.15
1.52
3.85
Calc.
0.72
0.86
1.02
1.43
3.65
Settling time
Meas.
Calc.
38.5
40
9.73
10
5.74
5.71
4.22
4
2
2
SS time
Meas.
0.5
0.5
0.5
0.5
0.5
Calc.
0.5
0.5
0.5
0.5
0.5