Recent content by reik6149

  1. R

    MATLAB Why does Matlab's margin function find gain margin at -540° instead of -180°?

    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
  2. R

    MATLAB Why does Matlab's margin function find gain margin at -540° instead of -180°?

    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...