Optimizing Gain Margin in Matlab Bode Diagram

  • Context: MATLAB 
  • Thread starter Thread starter reik6149
  • Start date Start date
  • Tags Tags
    Gain Margin Matlab
Click For Summary
SUMMARY

The discussion focuses on optimizing gain margin in Matlab's Bode diagram, specifically addressing the discrepancy between the expected -180 degree crossover and the -540 degree crossover indicated by the "margin" function. Users are advised to consider the implications of a non-minimum phase system, which may necessitate the use of the Nyquist stability criterion over the Barkhausen stability criterion. The provided Matlab code demonstrates the setup for analyzing the transfer function with a numerator of 24 and a denominator of 11.5s + 1, including an input delay of 2.3 seconds.

PREREQUISITES
  • Understanding of Matlab's Bode plot functionality
  • Familiarity with gain margin and phase margin concepts
  • Knowledge of non-minimum phase systems
  • Basic grasp of Nyquist and Barkhausen stability criteria
NEXT STEPS
  • Explore Matlab's "tf" function for transfer function creation
  • Learn about Nyquist stability criterion in detail
  • Investigate the implications of non-minimum phase systems on control design
  • Study the differences between gain margin and phase margin in control systems
USEFUL FOR

Control engineers, system analysts, and Matlab users seeking to optimize gain margins and understand stability criteria in control systems.

reik6149
Messages
2
Reaction score
0
For the Matlab bode diagram, normally when we want to obtain the gain margin, we have to cross the line from phase -180 and touch the curve. (Picture1 is what I did) however from the matlab, the gain margin crossover is start from -540 instead of -180 degree by using "Margin" function(Picture2 is what Matlab shown).

Attached is the problem's picture, may I know should I stick with -180 like the "picture1" ? or just follow what the Matlab show which is -540?

picture1.png


Picture2.png


What i guess is, due to the gain margin is positive, thus the system auto change to -540 so the gain margin will be negative? Does this make any sense?
 
Physics news on Phys.org
OK, here is the code in matlab

num=[24];
den=[11.5 1];
g=tf(num,den);
set(g,'inputdelay',2.3)
bode(g)
margin(g)...-2.3
24 . e
--------------
11.5s + 1
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
4K
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 5 ·
Replies
5
Views
4K