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


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.
@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