GainMargins[lsys]
gives the gain margins of the linear time-invariant system lsys.
GainMargins
GainMargins[lsys]
gives the gain margins of the linear time-invariant system lsys.
Details and Options
- The system lsys can be a TransferFunctionModel or a StateSpaceModel.
- The gain margins are the reciprocals of the magnitude of lsys at the phase crossover frequencies.
- At the phase crossover frequencies lsys has phase
. - GainMargins returns {{ωp1,g1},{ωp2,g2},…}, where ωpi are the phase crossover frequencies, and gi are the absolute values of the gain margins.
- GainMargins has the same options as GainPhaseMargins.
- GainMargins has the attribute Listable.
-
FeedbackType "Negative" the feedback type Method Automatic method to use SamplingPeriod None the sampling period
List of all options
Examples
open all close allBasic Examples (3)
The gain margins of a continuous-time system:
GainMargins[TransferFunctionModel[{{{10000}}, (5 + s)*(20 + s)*
(50 + s)}, s]]Map[{First[#], 20 Log10[Last[#]]}&, %]//NGainMargins[TransferFunctionModel[{{{(1 + z)^2/100}}, (-1 + z)*(1/3 + z)*
(1/2 + z)}, z, SamplingPeriod -> 1]]GainMargins[TransferFunctionModel[{{{-6/E^s}}, -1 + s^2}, s]]Generalizations & Extensions (1)
GainMargins[TransferFunctionModel[g,var]] is equivalent to GainMargins[g]:
g = (20/10 s + 7 s^2 + s^3);{GainMargins[g], GainMargins[TransferFunctionModel[g, s]]}Related Guides
History
Text
Wolfram Research (2010), GainMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/GainMargins.html.
CMS
Wolfram Language. 2010. "GainMargins." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GainMargins.html.
APA
Wolfram Language. (2010). GainMargins. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GainMargins.html
BibTeX
@misc{reference.wolfram_2026_gainmargins, author="Wolfram Research", title="{GainMargins}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/GainMargins.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_gainmargins, organization={Wolfram Research}, title={GainMargins}, year={2010}, url={https://reference.wolfram.com/language/ref/GainMargins.html}, note=[Accessed: 13-June-2026]}