SimMechanics is used to simulate a pendulum at the tip of a rotating arm, called a furuta pendulum. The equation of motion are then simulated by ode45 to show they are the same. All nonlinear dynamics are simulated (only one on file exchange I've seen that does that), so the equations can be used to design swing up controller. Also shows how to use function handles so to use ode with a single file.
Simulation does NOT include friction or inertia besides the axial inertia.
File still works without SimMechanics, but cannot show comparison. If there's interest for a mat file with an example output, just let me know.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.