...
% Position Plots
figure(1)
hold on
plot(pointP1x, pointP1y);
plot(pointP2x, pointP2y);
plot(pointHx, pointHy);
%plot(pointBx, pointBy);
axis('equal');
title('Movement of Dino Head');
xlabel('X Position of Dino Head');
ylabel('Y Position of Dino Head');
legend('P1', 'P2', 'Point H');
hold off
...