%  Figure 6.56      Feedback Control of Dynamic Systems, 8e
%                   Franklin, Powell, Emami
% 
%
clear all
%close all;
clf
 
k = 10;
s = tf('s');

sysG = 1/(s*(s+1));
sysD = (s/2+1)/(s/10+1);
sysT = feedback(k*sysD*sysG,1);

t = 0:.05:5;
y = step(sysT,t);

subplot(2,1,1)

plot(t,y,'LineWidth',2);

axis([0 2 0 1.4])
grid minor
xlabel('Time (sec)');
ylabel('y');
title('Step response of lead-compensation design.');
