Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function
gain margin and associated crossover frequency
a SISO linear system (see :syslin).
a number, the gain margin (in dB) if any of
a number, the associated frequency in hertz, or an empty matrix if the gain margin does not exist.
Given a SISO linear system in continuous or discrete time,
gain margin in dB of
fr, the achieved corresponding frequency in
The gain margin, if it exists, is the minimal value of the
system gain at points where the nyquist plot crosses the negative
real axis. In other words the gain margin is
g is the
open loop gain of
h when the frequency response
h equals -180°
The algorithm uses polynomial root finder to solve the equations:
for the continuous time case.
for the discrete time case.
h = syslin(0.1,0.04798*%z+0.0464,%z^2-1.81*%z+0.9048);//discrete time case [g ,fr]=g_margin(h); show_margins(h)
|Report an issue|
|<< evans||Stability||p_margin >>|