Professional Documents
Culture Documents
F44128640 Homework 2 LCS DING Joel
F44128640 Homework 2 LCS DING Joel
Joel
F44128640
2023/12/02
Summary
Bonus Question :....................................................................................................................................2
1)........................................................................................................................................................2
2)........................................................................................................................................................3
3)........................................................................................................................................................3
4)........................................................................................................................................................4
Question 1 :............................................................................................................................................7
Question 2:.............................................................................................................................................9
Question 3 :..........................................................................................................................................10
a)......................................................................................................................................................11
b)......................................................................................................................................................11
c).......................................................................................................................................................11
Question 4 :..........................................................................................................................................12
a)......................................................................................................................................................13
b)......................................................................................................................................................14
MATLAB codes used :...........................................................................................................................15
Bonus Question :..................................................................................................................................15
Question 1 :..........................................................................................................................................15
Question 2 :..........................................................................................................................................16
Question 3 :..........................................................................................................................................16
Question 4 :..........................................................................................................................................16
1
Bonus Question :
1)
By considering K = 1, the open loop transfer function gives us :
We know that poles equal to 0 (So, poles on the Imaginary Axis), are critical stable poles.
Which from the step response of this open loop transfer function G(s), gives us the proof of the critical
stability of the open-loop system:
Indeed, we can see a step response increasing proportionally into infinite. So, the system is critically
stable.
2
2)
With K back to a constant, we obtain the following closed-loop TF :
3)
The characteristic equation is given by : 1 + G(s) = 0
3
4)
4
Thus, the range of K such that the closed-loop TF Gcl(s) is stable is :
0< K < 6,5918
Which can be proven by these plots :
5
6
Question 1 :
7
So, by using the characteristic equation 1+G ( s )=0 , we have from the routh table:
We can see 2 sign changes, which means there’s 2 poles i n the RHP∧3 poles∈the LHP .
We can also check the poles in MATLAB for the closed-loop TF Gcl (s ) :
8
Question 2:
The closed-loop TF is:
We can see that all the coefficients in the s3 row are zero.
Which means that there’s 2 pairs of complex conjugate roots. Placed symmetrically about the origin.
We can also check the poles in MATLAB for the closed-loop TF Gcl (s ) :
9
Question 3 :
The open-loop TF is :
10
a)
b)
c)
We can also easily see by changing the value of K that the step response of the closed-loop TF is
stable, unstable, or marginally stable on MATLAB.
11
Question 4 :
The open-loop TF is :
The closed-loop TF is :
12
a)
The system oscillates for the gain K=416,6702 :
13
This is the step response of Gcl(s) with K = 416.6702, where, as we can see, oscillates.
b)
The complex conjugate poles are at 0+6.8840 i and 0−6.8840 i with MATLAB for the closed-loop
TF Gcl (s ) for K=416 , 6702
14
MATLAB codes used :
Bonus Question :
%% Bonus Question :
num = 10;
den = [1 6 23 42 49 0];
G = tf(num,den)
%{
pole(G)
figure
step(G)
hold on; grid on;
legend('Step Response of Open Loop TF G(s)')
%}
Gcl1=tf([10*K1],[1 6 23 42 49 10*K1])
Gcl2=tf([10*K2],[1 6 23 42 49 10*K2])
pole(Gcl1)
pole(Gcl2)
figure(1)
step(Gcl1)
title('Stable range of K1=6.5917')
legend('Step Response of Closed-Loop TF Gcl(s) with K1=6.5917')
figure(2)
step(Gcl2,'r')
title('Unstable range of K2=6.5918')
legend('Step Response of Closed-Loop TF Gcl(s) with K2=6.5918')
Question 1 :
%% Question 1
G = tf(1,[2 3 2 3 2 0])
pole(G)
Gcl=tf(1,[2 3 2 3 2 1])
pole(Gcl)
15
Question 2 :
%% Question 2
Question 3 :
%% Question 3
K=1;
G = tf(K,[1 18 77 0])
pole(G)
step(Gcl)
Question 4 :
%% Question 4
K=416.6702;
step(Gcl)
16