Gravity Simulator

A dynamic three dimensional N-body gravity simulator!
Updated 18 Apr 2013

View License

* Numerical solver via Verlet algorithm
* Fully vectorized code
* N interacting masses
* Rings or spherical clusters of massless particles
* Elliptical orbit initial conditions. Any orientation.
* Lots of test and analysis
* Create indexed screenshots to make movies

For more details (including a full technical note) see

Cite As

Andrew French (2024). Gravity Simulator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Earth, Ocean, and Atmospheric Sciences in Help Center and MATLAB Answers

Inspired: GalaxyModel

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes