1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>g_margin</TITLE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="g_margin"> gain margin</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>[gm [,fr]]=g_margin(h) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>h</PARAM_NAME>
17
<SP>: <VERB>syslin</VERB> list representing a linear system in state-space or transfer form</SP>
24
returns <VERB>gm</VERB>, the gain margin in dB of <VERB>h</VERB>
25
(SISO plant) and <VERB>fr</VERB>, the achieved corresponding frequency in hz.
26
The gain margin is values of the system gain at points where the
27
nyquist plot crosses the negative real axis.</P>
31
h=syslin('c',-1+%s,3+2*%s+%s^2)