Billiards

Simulation of elastic collisions of balls of different sizes.

You are now following this Submission

The simulation is based purely on elastic collisions.

Cite As

Peter van Alem (2026). Billiards (https://www.mathworks.com/matlabcentral/fileexchange/20759-billiards), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Physics in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Code cleanup and speedup

1.1.0.0

Two and three dimensional simulation, more use of vectorization and a minor bug is fixed.

1.0.0.0

Some commentary is used to improve the code.