t=0:.01:1;
Kp = 1;
L = 1;
T = .1;
h = Kp * (1 - exp(-(t - L)/T));
plot(t, h)