GainMarginsCopy to clipboard.
✖
GainMargins
Copy to clipboard.
✖
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.
List of all options

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
The gain margins of a continuous-time system:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/05fwqrhe26-7eoh8b
Direct link to example
Out[1]=1

Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/05fwqrhe26-3ldc00
Direct link to example
Out[2]=2

Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/05fwqrhe26-rwlchs
Direct link to example
Out[1]=1

Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/05fwqrhe26-j0v9ji
Direct link to example
Out[1]=1

Generalizations & Extensions (1)Generalized and extended use cases
GainMargins[TransferFunctionModel[g,var]] is equivalent to GainMargins[g]:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/05fwqrhe26-4cdtg
Direct link to example
Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/05fwqrhe26-woh5og
Direct link to example
Out[2]=2

Wolfram Research (2010), GainMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/GainMargins.html.
Copy to clipboard.
✖
Wolfram Research (2010), GainMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/GainMargins.html.
Text
Wolfram Research (2010), GainMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/GainMargins.html.
Copy to clipboard.
✖
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.
Copy to clipboard.
✖
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
Copy to clipboard.
✖
Wolfram Language. (2010). GainMargins. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GainMargins.html
BibTeX
Copy to clipboard.
✖
@misc{reference.wolfram_2025_gainmargins, author="Wolfram Research", title="{GainMargins}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/GainMargins.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
Copy to clipboard.
✖
@online{reference.wolfram_2025_gainmargins, organization={Wolfram Research}, title={GainMargins}, year={2010}, url={https://reference.wolfram.com/language/ref/GainMargins.html}, note=[Accessed: 06-April-2025
]}