File Exchange Pick of the Week

September 16th, 2011

Ball and Beam

Jiro's pick this week is Ball and Beam Simulation by Jeffrey Kantor.

Ball and beam is an interesting controls problem. A good friend of mine from graduate school used to do research on this problem, both from the theoretical and experimental sides. So I was immediately drawn to this example by Jeffrey.

This didactic tool has a nice graphical user interface for simulating the ball and beam system, as well as performing an experiment. The tool will record the simulation/experiment and will save and display the results. I also like how Jeffrey created a problem set for this topic using MATLAB publishing.

Comments

Let us know what you think here or leave a comment for Jeffrey.


Get the MATLAB code

Published with MATLAB® 7.13

2 Responses to “Ball and Beam”

  1. shaikha replied on :

    Hello Jefery,

    I am working on a similar project and I was wondering if you can help me with the animation commands for a dynamic system or give me some links to Animation of dynamic systems using Matlab/Simulink to better my understanding. I am doing a literature review before proceeding with the project so that I can use Lagrange equations, but could not find the animation commands.

    thank you.

  2. jiro replied on :

    @shaikha,

    There are some information on Animation in the documentation:
    http://www.mathworks.com/help/techdoc/creating_plots/f10-1460.html

    Handle Graphics is another topic that is useful for animation:
    http://www.mathworks.com/help/techdoc/creating_plots/f7-20419.html

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.