N-body simulation with ode45

version 1.0.5 (3.67 KB) by Alex Pedcenko
Gravitational N-body simulation using ode solvers of MATLAB


Updated 25 Apr 2020

View License

interactive gravitational N-body simulation using ode solvers of MATLAB. It will loose symmetry eventually due to accumulation of numerical errors, but you can play with tspan to come up with different results.

Cite As

Alex Pedcenko (2022). N-body simulation with ode45 (https://www.mathworks.com/matlabcentral/fileexchange/75202-n-body-simulation-with-ode45), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: Bisection method

Community Treasure Hunt

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

Start Hunting!