%% Evaluate Signal Tracking Requirement
% Create the reference data.

time = (0:0.1:10)';
data = 1-exp(-time);

%
% Create the signal tracking requirement object. Specify the reference signal.

req = sdo.requirements.SignalTracking;
req.ReferenceSignal = timeseries(data,time);

%
% Obtain the test point signal.

sig = timeseries(1-exp(-time/2),time);

%
% Evaluate the signal tracking requirement.

c = evalRequirement(req,sig);

% Copyright 2015 The MathWorks, Inc.