StabilityMargins

StabilityMargins
is an option to frequency response plots such as BodePlot, NyquistPlot, and NicholsPlot that specifies the gain and phase margins to be shown on the plot.

DetailsDetails

  • With StabilityMargins->True, the gain and phase margins are shown on the plot, and with StabilityMargins->False they are not shown.
  • StabilityMargins->{{fp,g},{fg,p}} shows the gain margin g at the phase crossover frequency and the phase margin p at the gain crossover frequency .
  • StabilityMargins->{{{fp 1,g1},{fp 2,g2},},{{fg 1,p1},{fg 2,p2},}} shows the margins at frequencies and .
  • The crossover frequencies are the units of the complex variable of the TransferFunctionModel in the plot, the gain margins are in absolute values, and the phase margins are in radians.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Stability margins can be shown on all the frequency response plots:

In[1]:=
Click for copyable input
Out[1]=
In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=
In[9]:=
Click for copyable input
Out[9]=

Use precomputed gain and phase margins:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
Introduced in 2010
(8.0)