Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab Gain Margin problem.

Status
Not open for further replies.

reik

Junior Member level 3
Joined
Jun 15, 2010
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,483
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
 

Looks rather strange. The gain drops with app. 20 dB/dec and the phase goes rapidly down (rather than to approach 90 deg.) . Something must be wrong in your simulation setup.
 

Below is my code, its just simple but wonder what is the problem =(


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


---------- Post added at 19:49 ---------- Previous post was at 19:36 ----------

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 sense?
 

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 sense?

No, as I told you: The phase response looks strange. Check your simulation setup.
I suppose, you have shown the loop gain - correct?
 

sorry i dont understand...because this question is come from my lecturer, assume the question is correct, is it logic which the matlab mark the curve at -540 degree?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top