This model implements a double pendulum both in SimMechanics™ and using basic Simulink® blocks.
You can see how easier it is using SimMechanics™!
Guy Rouleau (2021). Double Pendulum (https://www.mathworks.com/matlabcentral/fileexchange/23126-double-pendulum), MATLAB Central File Exchange. Retrieved .
Nice, this was helpful for me as I am testing out SimMechanics for the first time.
Alan - what release are you using? This was made for R2008b and greater. Guy may be able to save back to the version you are using. Note this file does require SimMechanics.
Model wouldn't load for me, quite a few warnings:
generated with a newer version (7.2) of Simulink
block_diagram does not have a parameter named 'SampleTimeAnnotations'.
Value 'Nonadaptive' is incompatible to parameter 'ZeroCrossAlgorithm'.
does not have a parameter named 'UpdateFromCAD'
does not have a parameter named 'BodyVisualizationType'
does not have a parameter named 'BodyColorSelMode'
does not have a parameter named 'DefaultBodyColor'
Did anyone else have these issues?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!