MATLAB Examples

Bouncing Ball

This example shows how to model an elastic ball bouncing on a planar body rigidly connected to the ground. The contact between the ball and the planar body is modeled by a penalty force that mimics impact and deformation in one dimension. Workspace variables are defined.