This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Double Pendulum in Simulink and Simscape Multibody

This example shows two models of a double pendulum, one using Simulink® input/output blocks and one using Simscape™ Multibody™.

The Simulink model uses signal connections, which define how data flows from one block to another. The Simscape Multibody model is built using physical connections, which permit a bidirectional flow of energy between components. Physical connections make it possible to add further stages to the pendulum simply by using copy and paste. Input/output connections require rederiving and reimplementing the equations.

The initial angle for each joint is defined by a MATLAB® variable. The annotations on the Integrator blocks show the initial angles of the joints with respect to the world frame.

Model

Simulation Results from Simscape Logging

Mechanics Explorer Animation