Main Content

evalRequirement

Class: sdo.requirements.OpenLoopGainPhase
Package: sdo.requirements

Evaluate gain and phase bounds on Nichols response of linear system

Syntax

c = evalRequirement(req,lin_sys)

Description

c = evalRequirement(req,lin_sys) evaluates whether a linear system satisfies the specified open-loop gain and phase bounds on the Nichols response.

Input Arguments

req

sdo.requirements.OpenLoopGainPhase object.

lin_sys

Linear system (tf, ss, zpk, frd, genss, or genfrd).

Output Arguments

c

Vector of maximum signed distances of the response to each piecewise linear edge. Negative values indicate that the bound edge is satisfied and positive values indicate the bound is violated.

Examples

Evaluate open-loop gain and phase requirements.

req = sdo.requirements.OpenLoopGainPhase;
sys = tf(0.5,[1 3 3 1]);
c = evalRequirement(req,sys);