load data/result.dat;

figure(7);
plot(result(:,1), result(:,2), 'b-', result(:,1), result(:,5), 'r-');
legend('y', 'r');
xlabel('time (s)');
ylabel('rotational speed (rad/s)');

figure(8);
plot(result(:,1), result(:,4), 'b-');
legend('u');
xlabel('time (s)');
ylabel('torque (Nm)');