%% Create a Smoothness Constraint Requirement Object
% Create a requirement object to impose a bound on the gradient magnitude of a variable. The object has default properties.

Requirement = sdo.requirements.SmoothnessConstraint;

%
% Specify the gradient magnitude bound value.

Requirement.GradientBound = 5;

% You can now use the evalRequirement command to evaluate whether test data satisfies the requirement.
% Copyright 2012 The MathWorks, Inc.