- Either reduce the gain of the controller to achieve a larger phase margin, but at a lower frequency.
- Or add additional phase using controller terms such as lead-lags.
How to plot the phase margin?
56 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hardik
am 22 Dez. 2022
Bearbeitet: Hardik
am 23 Dez. 2022
Hello I have one tricky question where I am struck.I know how to plot the bode diagtam using the margin command but i am not sure how can i implement more than 30% margin part. my system and requirement is below. Please help me to understand how can i do this.
0 Kommentare
Akzeptierte Antwort
Bora Eryilmaz
am 22 Dez. 2022
Bearbeitet: Bora Eryilmaz
am 22 Dez. 2022
The transfer function 20/(s+1) is your controller. As it is, it does not give you a 50-degree phase margin. You need to modify this controller to achieve the desired phase margin. There are couple ways of doing this:
% Initial compensator
C = zpk([], -1, 20);
% The plant
G = zpk(-20, [-2 -5], 1);
% Phase and gain margin of the open-loop transfer function with initial
% compensator
L = C*G;
margin(L)
% Modify the compensator C to obtain the desired phase margin (this part is
% up to you, since this seems like a homework question).
C = zpk([], -2, 10) % This is my trivial change, will not give 50 degrees phase margin.
L = C*G;
margin(L)
% Bode plot of the compentator
bode(C)
% Closed-loop system
T = L / (1 + L);
bode(T)
step(T)
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Control System Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!