Evaluate gain and phase margin bounds for linear system
c = evalRequirement(req,lin_sys)
c = evalRequirement(req,lin_sys) evaluates whether a linear system satisfies the specified gain and phase margin bounds. The gain and phase margins are computed using the feedback sign specified in the FeedbackSign property of req.
Linear system (tf, ss, zpk, frd, genss, or genfrd).
Evaluate gain and phase margin requirements.
req = sdo.requirements.GainPhaseMargin; sys = tf(0.5,[1 3 3 1]); c = evalRequirement(req,sys);
c is negative, which indicates that the system satisfies the gain and phase margin requirement.