Rolling Ball on Plane

Model of a rolling ball on plane using SimMechancs.


Updated 9 Feb 2015

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This model simulates a rolling ball on plane. It is constructed in SimMechanics (2nd generation). The contact between ball and plane is modelled by taking into accout the support force and simple friction force. The model uses an S-function coded in C language. It must be compiled first by giving a command "mex ballplanecontact.c" in the MATLAB Command Window. The model was inspired by SimMechanics Contact Forces Library.

Cite As

Janne Salomäki (2023). Rolling Ball on Plane (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Multibody Modeling in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Blocks renamed and some comments added.