% UW ME 547, winter 2020
% transfer function terminology and analysis
% Xu Chen
% Tuesday, January 14, 2020
% 
s = tf('s');
G = (3*s+2)/(0.5*s+1)/(s+1)
dcgain(G)
figure, impulse(G)
figure, step(G)
% observe that the final value of the step response matches the dc gain

% 
z = tf('z')
X = z/(z-0.5)
dcgain(X)
figure, step(X)
% observe that the final value of the step response matches the dc gain