Particle System Toolbox

Graphically simulate the interactions of particles, springs, and attractions in a particle system.
Updated 4 Dec 2015

View License

Did you ever wonder, how they do the simulation of all that snow, rain, dust, smoke, and fire in modern computer games? How they model bullets, ropes, curtains and solar systems?
With this particle system toolbox you can easily create particles, attractions, and springs in a particle system environment with gravity and drag and graphically simulate their interactions with just a few lines of code. Run one of the 12 demos and read the detailed documentation at

Have fun ...

Cite As

Joerg Buchholz (2024). Particle System Toolbox (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Gravitation, Cosmology & Astrophysics 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

Due to a change in the axis command, the order of "axis equal" and "axis ([-limits limits -limits limits -limits limits])" had to be turned around.

Particles, springs, and attractions now have their own update_graphics_position method. New demo "Three-Body Eight".

All objects in the version 2.0 of this toolbox are derived from the handle class, significantly increasing the ease of aggregation and administration of particles, springs, and attractions in the particle system.