%% Turn Off Regularization for H2 Synthesis
% Create an option set for the h2syn command that turns off automatic regularization of the plant. Turning off regularization can speed up the computation when you know your problem is far from singular.
% You can use Name,Value pairs to create the option set.

opts = h2synOptions('Regularize','off');

%
% Alternatively, create a default options set and use dot notation to change the option value.

opts = h2synOptions;
opts.Regularize = 'off';

% You can now use opts as an input argument to h2syn.
%
% Copyright 2018 The MathWorks, Inc.