summaryrefslogtreecommitdiff
path: root/1499/CH5/EX5.44/s44.sce
blob: 000b5122441d8139200cb23f6ac27c7555841e84 (plain)
1
2
3
4
5
6
7
8
s=%s;
syms K
H=syslin('c',K*(1+s)/(1-s))
nyquist(H)
show_margins(H,'nyquist')
mtlb_axis([-1 1 -5 1])
gm=g_margin(H)  // gain margin
pm=p_margin(H)  // phase margin