Code covered by the BSD License  

Highlights from


4.4 | 11 ratings Rate this file 57 Downloads (last 30 days) File Size: 64.7 KB File ID: #151
image thumbnail




27 Mar 2001 (Updated )

BALLBEAM demonsrates Proportional-Derivative (PD) control using a ball and beam simulation.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

BALLBEAM demonsrates Proportional-Derivative (PD) control as applied to a ball and beam simulation experiment. Execute by calling with no arguments.
P and PD controllers are implemented which manipulates the beam angle in response to the position of the ball on the beam. The setpoint is indicated by the red marker and adjusted using the slider at the bottom of the figure. The control gain, Kc, and the Derivative Time constant, Td, are adjusted by a sliders located in the right hand control panel.

Simulation data is stored in ballbeam.mat for subsequent analysis and parameter estimation.

This demo was originally developed with Matlab 5.3 and Matlab 6.0. Some of the user interface code was shamelessly ripped out of the standard Matlab demos. The demo is now updated for Matlab 2010b with additional documentation and suggested exercises for classroom use.

Required Products MATLAB
MATLAB release MATLAB 6.0 (R12)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
23 Apr 2011 Joachim  
26 Jan 2011 Douglas

Best Evaaaaaaaarrrrrr!!!!!

27 Jun 2007 henry dinh  
06 May 2007 mor sal

it is very good

13 Jun 2006 mehdi sajjadi

I only can say perfect.Avery good refrence fro stundents that they have problem in their projects.

02 Nov 2005 Daniel Oldjira Fufa

It is cool. Thank you for it.


01 Oct 2005 fsdf fdf  
23 Aug 2005 Alex Osk  
17 Feb 2005 Muhammad Abid  
08 Dec 2004 Ary Bachtiar  
13 Jan 2004 Fahad Al Mahmood

Good Demo!

20 Jan 2011

Updated for release Matlab 2010b with additional documentation and suggested classroom exercises.

27 Jan 2011

Fix an error that sometimes occurs in the PD mode of the simulation.

06 Dec 2014

Update as a Matlab Toolbox

Contact us