%% Create a Phase Plane Region Bound With Edge Extending to Infinity
% Create a phase plane region requirement object with default properties. The object specifies a piecewise-linear bound on the phase plane trajectory of two signals. The phase plane is the X-Y plane defined by the two signals.

Requirement = sdo.requirements.PhasePlaneRegion;

%
% Specify a piecewise-linear bound with two edges. The (x,y) coordinates for the beginning and end of the first edge are (1,1) and (2,1). The second edge extends from (2,1) to (2,0). You must specify the BoundX and BoundY properties simultaneously.

set(Requirement,'BoundX',[1 2; 2 2],'BoundY',[1 1; 1 0])

%
% Specify that the beginning of the first edge extends to infinity.

Requirement.OpenEnd = [1 0];

% The first edge now extends from (-Inf,1) to (2,1).
% You can now use the evalRequirement command to evaluate whether test data from two signals satisfy the requirement.
% Copyright 2012 The MathWorks, Inc.