function [Dd,varargout] = c2d(Dc,Ts,options)
%C2D  Continuous-to-discrete conversion of SPARSS models.

%   Copyright 2020 The MathWorks, Inc.
method = options.Method(1);
switch method
   case 't'
      % Tustin discretization
      [Dd,varargout{1:nargout-1}] = utDiscretizeTustin(Dc,Ts,options);
   case 'd'
      % TRBDF2
      [Dd,varargout{1:nargout-1}] = utDiscretizeTRBDF2(Dc,Ts,options);
   otherwise
      error(message('Control:transformation:c2d13'))
end
