function obj = d2dOptions(varargin)
%D2DOPTIONS  Creates option set for the D2D command.
%
%   OPT = D2DOPTIONS returns the default options for D2D. 
%
%   OPT = D2DOPTIONS('Option1',Value1,'Option2',Value2,...) uses name/value
%   pairs to override the default values for 'Option1','Option2',...
%
%   The supported options are:
%
%   Method             Discretization method ('zoh', or 'tustin').
%                      The default is 'zoh'.
%
%   PrewarpFrequency   Prewarp frequency (for 'tustin' method only). 
%                      Specify this frequency in rad/TimeUnit relative to the
%                      time units of the resampled system. The default value 
%                      is zero which corresponds to the standard Tustin method.
%
%   Consistency        State and delay consistency (for SS arrays only).
%                      In D2D of an array of state-space models, setting
%                      Consistency='on' ensures state and delay consistency 
%                      across the resulting array of resampled models.
%                      Default is 'off', which minimizes the number of
%                      delays and may increase the number of states.
%
%   See also D2D.

%   Copyright 1984-2023 The MathWorks, Inc.
try
   obj = initOptions(ltioptions.d2d,varargin);
catch E
   throw(E);
end
