Example: Simulation of a Bouncing Ball. It is described in MATLAB & Simulink example available by the following link: http://www.mathworks.com/help/simulink/examples/simulation-of-a-bouncing-ball.html