I am able to control pendulum angle by using simulink but the main challenge is to bring back the cart to 0 position bec after running my simulation it goes from -1 to 5 according to my intial condition and and angle pi/5 so at position 5 i am getting cart with pendulum at
90deg. How to bring back the cart at 0 with pendulum 90deg