This animation example of a mechanism is used to show students how Matlabs graphical user interface can be used for animations. A crank mechanism is animated and the user can change animation speed and piston rod length. The code is reasonably commented to explain the steps taken and the idea is that the students can use the code as a start to create their own animations. Anyone to use this code needs at least an introductory lecture about Matlab GUI's and how to use objects.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.