figure (2)
hold on;
clear;

robot = tf(1, [1 8 25]);		

Kp = 0.50;			% defines the proportional controller gain

t=0:0.01:2;

perturbation = 0;       %no perturbation

pcontrol=feedback(Kp*robot+perturbation, 1);	

figure(2)
step(pcontrol, t)       % give a step input with magnitude of 1 meter and plot the output
title('P control')
%axis([0 2 0 1.2])
