Homewrok #1 Solution
Homewrok #1 Solution
Problem #1:
MatLab code:
clear
h = tf([1 1],[1 2 25 50 0]);
rlocus(h)
Problem #2:
Matlab code:
K=10;
a = tf([10],[1 0 0])
b = tf([1 0.5],[1 16])
gs=K*a*b
d=gs/(1+gs);
step(d)
figure(1)
S = stepinfo(d)
figure(2)
rlocus(gs)
Output:
>> H1P2
a= Given Transfer function
10
---
s^2
Continuous-time transfer function.
b= Lead Compensation
s + 0.5
-------
s + 16
Continuous-time transfer function.
gs = Open Loop Transfer Function
100 s + 50
------------
s^3 + 16 s^2
Continuous-time transfer function.
S=
RiseTime: 0.2213
SettlingTime: 2.9684
SettlingMin: 0.9040
SettlingMax: 1.0901
Overshoot: 9.0138
Undershoot: 0
Peak: 1.0901
PeakTime: 0.5304
Overshot is less than 10% and Rise Time is less than 1 s so the Requirements for the controller
are met.
Problem #3
Problem #4
gs=K*a*b
d=gs/(1+gs);
figure(1)
margin(b)
figure(2)
To achieve a result where the reqirements were satisfied several iterations were carried out
changing K, alpha and T.
Bode plot of Lead Compensator:
Phase margin is 58.9 deg > 50 deg, and Bandwidth is about 2 rad/s > 1 rad/s, so the
Requirements for the controller are met.