sdo.requirements.GainPhaseMargin
Gain and phase margin bounds
Description
Specify lower or equality bounds on the gain and phase margin of a
linear system. You can then optimize the model response to meet the bounds
using sdo.optimize
.
You must have Simulink® Control Design™ software to specify gain and phase margin requirements.
Creation
Syntax
Description
creates an gainphase_req
= sdo.requirements.GainPhaseMarginsdo.requirements.GainPhaseMargin
object and assigns default values to its properties.
specifies
one or more properties using name-value arguments. For
example, gainphase_req
=
sdo.requirements.GainPhaseMargin(Name=Value)gainphase_req =
sdo.requirements.GainPhaseMargin(PhaseUnits="rad")
creates an sdo.requirements.GainPhaseMargin
object and specifies the PhaseUnits
property as radians.
Before R2021a, use commas to separate each name and value, and
enclose Name
in quotes. For example,
gainphase_req =
sdo.requirements.GainPhaseMargin("PhaseUnits","rad")
creates an sdo.requirements.GainPhaseMargin
object and specifies the PhaseUnits
property as radians.
Properties
Object Functions
copy | Copy design requirement |
get | Get design requirement property values |
set | Set design requirement property values |
evalRequirement | Evaluate design requirement |
Examples
Alternatives
Use getbounds
to get the
bounds specified in a Gain and Phase Margin Plot,
Check Gain and Phase Margins (Simulink Control Design) and Check Nichols
Characteristics (Simulink Control Design) block.
Version History
Introduced in R2010b