Optimizing Gain Margin in Matlab Bode Diagram

In summary, the conversation discusses the differences in obtaining the gain margin for a Matlab bode diagram. Normally, the gain margin is found by crossing the -180 degree phase line and touching the curve. However, the Matlab function "Margin" shows the gain margin crossing at -540 degrees. The person is wondering which value to use, and suggests that the system may automatically change to -540 because the gain margin is positive in order to make it negative. Someone else suggests looking at the Nyquist stability criterion for non-minimum phase systems instead of the simpler Barkhausen stability criterion. A code in Matlab is also provided for reference.
  • #1
reik6149
2
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
  • #3
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
 

1. What is the Matlab Gain Margin problem?

The Matlab Gain Margin problem is a method used in control system analysis to determine the stability of a system. It involves finding the gain margin, which is the amount of gain that can be added to a system before it becomes unstable.

2. How is the Matlab Gain Margin calculated?

The Matlab Gain Margin is calculated by plotting the frequency response of the system and finding the gain crossover frequency, which is the frequency at which the gain of the system is equal to 1. The gain margin is then determined by finding the distance between the gain crossover frequency and the point where the phase of the system is -180 degrees.

3. What does a positive or negative gain margin indicate?

A positive gain margin indicates that the system is stable, as there is enough room for additional gain before the system becomes unstable. A negative gain margin indicates that the system is unstable, and any additional gain will cause it to become unstable.

4. How does the Matlab Gain Margin help in control system design?

The Matlab Gain Margin is an important tool in control system design as it helps to determine if a system is stable or not. It also provides information on how much gain can be added to a system before it becomes unstable, allowing engineers to design systems with the desired level of stability and performance.

5. Are there any limitations to using the Matlab Gain Margin method?

Yes, there are some limitations to using the Matlab Gain Margin method. It assumes that the system is linear and time-invariant, which may not always be the case in real-world systems. Additionally, it does not take into account other factors such as noise and disturbances, which can affect the stability of a system.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
3K
  • Mechanical Engineering
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
946
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
3K
Back
Top