This library contains components for modeling a mini golf course. It includes fixed walls, moving walls, posts, spinning obstacles, putting head, and the hole. A nine-hole course is provided, showing how you can easily build up a set of components and reuse them in different designs. A control system helps you guide the putter to the right position and shoots the ball towards the hole. This example uses the Simscape Multibody Contact Forces Library.
Please read the README.txt file to get started.
Use the Download button to get files compatible with the current release of MATLAB.
Use the links below to get files compatible with earlier releases of MATLAB.
For R2019b: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/22.214.171.124.zip
For R2019a: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/126.96.36.199.zip
For R2018b: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/188.8.131.52.zip
For R2018a: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/184.108.40.206.zip
For R2017b: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/220.127.116.11.zip
For R2017a: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/18.104.22.168.zip
For R2016b: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/22.214.171.124.zip
For R2016a: https://github.com/mathworks/Simscape-Multibody-Mini-Golf/archive/126.96.36.199.zip
See how to defining bodies in Simscape Multibody by watching this video (5 min):
Learn more about multibody simulation with Simscape Multibody by watching this webinar
Find other Simscape examples by searching posts for the keyword "physical modeling"
Learn more about MathWorks Simscape Products:
You may reuse this content, with or without modification, in your work.
Please follow the conditions of the license file and use the following citation:
 Miller, Steve (2018), Simscape Multibody Mini Golf Library (https://www.mathworks.com/matlabcentral/fileexchange/36541) MATLAB Central File Exchange. Retrieved on <date you downloaded submission>
Steve Miller (2020). Simscape Multibody Mini Golf Library (https://www.mathworks.com/matlabcentral/fileexchange/36541-simscape-multibody-mini-golf-library), MATLAB Central File Exchange. Retrieved .
Hi Zhen - I can email you a version that runs in R2014a if you send me your email address.
why the files couldn't be used in R2014a?
Thanks Matthew! I've submitted an update with the README.txt and fixes the "Run All" issue. It will be live later today. --Steve
Looks like an awesome add-on library.
1) No readme.txt file is included (one is included with separate Contact Force Library submission)
2) Certain functions are not available for loading (e.g., under play all).
3 star rating will be reviewed.
Aditya -- no low pass filter is required, so no I'm not using one. Some form of delay would be required if the formulation I used created an algebraic loop in Simulink, but the way I modeled it no loop is created.
In the contact force model it does not seem like you are using the low pass filter? Is that the case.
Added links to download files compatible with earlier releases of MATLAB.
Added R2018b version.
Updated to use Simscape Multibody Contact Force Library 4.1
Updated for R2018a. Uses Simscape Multibody Contact Force Library 4.0
Updating contact force library only, no changes to mini golf example.
Added R2017b version.
Added R2017a version and text for citing submission in other works.
Updated with Contact Force Library v3.5
Updated for R2016b
Fixed broken link in submission description.
Updated to use Simscape Multibody Contact Force Library 3.3
Updated to use Simscape Multibody Contact Force Library 3.2.
Updated for R2016a
Updated for R2015b
Added README.txt; Fixed "Run All" by adjusting Mini_Golf_Run_Course.m and settings in libraries.
Updated to use SimMechanics Contact Forces Library v3.0 which is included in this submission.
Updated to use SimMechanics Contact Forces Library v2.0 which is included in this submission.
Updated to use new SimMechanics Contact Forces Library.
Fixed webinar link.
Updated link to "Defining Rigid Bodies" video. No changes to files in the submission.
Added an updated version for R2012b and beyond.
Inspired by: Simscape Multibody Contact Forces Library