Code covered by the BSD License  

4.7 | 3 ratings Rate this file 49 Downloads (last 30 days) File Size: 38.3 KB File ID: #40801 Version: 1.0
image thumbnail

Inverted Pendulum Control


Rick Hill (view profile)


Animation of inverted pendulum LQR control system

| Watch this File

File Information

This app was developed as part of web-based control system tutorials available at:

The purpose of this app is to allow the user to view an animation of the Inverted Pendulum system with the step response plot. This allows the user to see the correlation between the plot and the system's physical response.

The animation and the app are based on the Inverted Pendulum - State-Space Controller Design page of the tutorials:§ion=ControlStateSpace

A state-feedback approach was used because we can easily return the cart position and pendulum angle as well as their respective velocities. For more information on the system model please refer to the Inverted Pendulum - System Modeling page of the tutorials:§ion=SystemModeling

Required Products Control System Toolbox
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
01 Mar 2015 Ajay Dusa

Dear Sir,
I am working on a project of controlling an Inverted Pendulum using Matlab.I saw your post regarding it.It's just great.But when I try to run your code of GUI animation it's showing me an error

??? function varargout = inv_pend_ani(varargin)
Error: Function definitions are not permitted in this context.

The code for your Output Graphs is working just fine.Only I got an issue in your GUI animation

Comment only
21 Aug 2014 Christian Galicia  
19 Aug 2014 ankur sarmah  

Contact us