Piccolo Particle Simulator

A lightweight particle simulator with collision detection.

You are now following this Submission

In this version the particles are bouncing in a square or circular bounding box with perfectly elastic collisions.
Particles have masses and radius.
It's a very educational script to learn something about particle physics.
You can set a flag and save the trajectories on a file log.

Cite As

Paolo Di Prodi (2026). Piccolo Particle Simulator (https://nl.mathworks.com/matlabcentral/fileexchange/29262-piccolo-particle-simulator), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Draw a circle.

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.1.0.0

Circle boundary box and file log.

1.0.0.0