function [yf,y0] = getFinalValue(D,RespType,Config,DC)
% Computes steady-state value for a given response type.

%   Copyright 2009-2022 The MathWorks, Inc.
if strcmpi(RespType,'impulse')
   % convert to internal parameterization
   % DC gain of s * H(s) or (z-1)/Ts * H(z)
   [~,I] = utGetInternalParams(D);
   DC = [I -I];
elseif nargin<4
   % Compute final value
   DC = dcgain(D);
end
OutputOffset = DC * Config.InputOffset;
y0 = repmat(OutputOffset,[1 2]);
yf = OutputOffset + DC .* Config.Amplitude';
