function obj = c2dOptions(varargin)
%C2DOPTIONS  Creates option set for the C2D command.
%
%   OPT = C2DOPTIONS returns the default options for C2D.
%
%   OPT = C2DOPTIONS('Option1',Value1,'Option2',Value2,...) uses name/value
%   pairs to override the default values for 'Option1','Option2',...
%
%   The supported options are:
%
%   Method             Discretization method ('zoh','foh','impulse',
%                      'tustin', 'matched', 'least-squares', or 'damped').
%                      The default is 'zoh'.
%
%   PrewarpFrequency   Prewarp frequency (for 'tustin' method only).
%                      Specify this frequency in rad/TimeUnit relative to
%                      the time units of the discretized system. The
%                      default value is zero which corresponds to the
%                      standard Tustin method.
%
%   DelayModeling      Modeling of extra delays ('delay' or 'state').
%                      Specifies whether extra delays from discretization
%                      are modeled as internal delays (default) or
%                      additional states.
%
%   FitOrder           Fit order (for 'least-squares' method only).
%                      Specifies the order of the discrete-time model
%                      fitted to the continuous-time frequency response.
%                      Set this option to 'auto' (default) to use the order
%                      of the continous-time model, and to an integer N to
%                      use an Nth-order fit. Reducing the order helps with
%                      unstable poles or pole/zero cancellations at z=-1.
%
%   ThiranOrder        Order of the Thiran filters used to approximate
%                      fractional delays in the 'tustin', 'matched' and
%                      'least-squares' methods. For continuous-time delays
%                      TAU that are not multiple of the sample time TS, the
%                      remainder of the division TAU/TS is called the
%                      fractional delay. The default approximation order is
%                      zero, meaning that fractional delays are rounded to
%                      the nearest integer. Nonzero orders result in better
%                      phase matching near the Nyquist frequency.
%
%   Consistency        State and delay consistency (for SS arrays only).
%                      In C2D of an array of state-space models, setting
%                      Consistency='on' ensures state and delay consistency
%                      across the resulting array of discretized models.
%                      Default is 'off', which minimizes the number of
%                      delays for each model.
%
%   See also C2D.

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