function D1 = plus(D1,D2)
% Adds two state-space models.

%   Copyright 1986-2020 The MathWorks, Inc.
if isfinite(D1) && isfinite(D2)
   D1 = plus@ltipack.AbstractSS(D1,D2);
   D1.StateInfo = [D1.StateInfo;D2.StateInfo];
   D1.SolverConfig = ltioptions.sparss.reconcile(D1.SolverConfig,D2.SolverConfig);
else
   % One system is NaN
   D1 = createGain(D1,NaN(iosize(D1)));
end