%% Evaluate Circular Bound on Phase Plane Trajectory
% Create a default requirement object.
Requirement = sdo.requirements.PhasePlaneEllipse;
%%
% Specify a circular bound of radius 2. The bounding circle is an upper bound.
Requirement.Radius = [2 2];
%%
% Specify the test signal data.
Signals = [1 2 3 4 5 6; 10 20 30 40 50 60]';
%%
% The test data is specified as an n-by-2 array. The first column 
% corresponds to the first signal, the x-value
% of the phase plane trajectory. The second column corresponds to the
% second signal, the y-value of the phase plane trajectory.

%%
% Evaluate the requirement.
Evaluation = evalRequirement(Requirement,Signals)
%%
% A positive |Evaluation| value indicates that the
% requirement is violated.

%% 
% Copyright 2012 The MathWorks, Inc.