%% Options for Worst-Case Gain Calculation
% Create an options set to calculate the worst-case gain while allowing the uncertain parameters to vary by 20% more than the range specified in the model. Also, configure the options to include the element-by-element sensitivity in the calculation.

opts = wcOptions('ULevel',1.2,'Sensitivity','on');

%
% Alternatively, create a default option set, and use dot notation to set the values of particular options.

opts = wcOptions;
opts.ULevel = 1.2;
opts.Sensitivity = 'on';

% Use opts as an input argument to a worst-case analysis command such as wcgain.
% Copyright 2012 The MathWorks, Inc.