Tutorial Description This was for a homework problem in automatic controls. I didnt wright the code to animate it or the Simulink diagram to do the calculations, I just designed the PD controller. The pendulum gets hit two times (once from each side) and the cart has to keep it upright. Notice the cart will go right forever, a state space controller could fix that problem. Inverted pendulum simulation using matlab/simulink - Video
Tutorial Description This was for a homework problem in automatic controls. I didnt wright the code to animate it or the Simulink diagram to do the calculations, I just designed the PD controller. The pendulum gets hit two times (once from each side) and the cart has to keep it upright. Notice the cart will go right forever, a state space controller could fix that problem. Inverted pendulum simulation using matlab/simulink - Video