show_margins causes scilab crash with a nonminimum phase system
Reported by yamiltaler
ml_1.png (7.59 KB, image/png)
Matlab graph with margin function
BUG DESCRIPTION:
----------------
Scilab crash after run show_margins(h,'bode') with a nonminimum phase system. The functions "g_margin", "p_margin" and "bode" runs fine. There is no trouble with show_margins(h,'nyquist).
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
s=poly(0,'s')
num=10*s+20;
den=s^3+14*s^2+35*s-50;
h=syslin('c',num/den);
show_margins(h,'bode');
// or
//show_margins(h);
OTHER INFORMATION:
------------------