function sys = ss2ss_(sys,T)
%

% Copyright 1986-2020 The MathWorks, Inc.
D = sys.Data_;
for ct=1:numel(D)
   try
      [D(ct),isSingular] = ss2ss(D(ct),T);
   catch ME
      if isa(sys,'genss')
         if ct>1
            error(message('Control:transformation:ss2ss4',ct))
         else
            error(message('Control:transformation:ss2ss3'))
         end
      else
         if ct>1
            error(message('Control:general:RequiresUniformNumberOfStates','ss2ss'))
         else
            throw(ME)
         end
      end
   end
   if isSingular
      error(message('Control:transformation:ss2ss2'))
   end
end
sys.Data_ = D;