% Chapter 8: Figure 8.48
%
%   The step response of the engraving machine, where
%
%                 2
%   T(s) =  ------------- . 
%           s^3+3s^2+2s+2 
%
K=2; num=[K]; den=[1 3 2 K];
sys=tf(num,den);
t=[0:0.01:20];
y=step(sys,t); plot(t,y), grid
xlabel('Time (s)'), ylabel('y(t)')