blob: b5d050f1b58dd6b5b5b94128c31ab3e7eb0cef2c (
plain)
1
2
3
4
5
6
7
8
|
s=%s;
syms K
H=syslin('c',K*(1+2*s)/(s*(s+1)*(s^2+s+1)))
nyquist(H)
show_margins(H,'nyquist')
mtlb_axis([-1 1 -5 1])
gm=g_margin(H) // gain margin
pm=p_margin(H) // phase margin
|