N-body simulation with ode45
Version 1.0.6 (3,81 ko) par
Alex Pedcenko
Gravitational N-body simulation using ode solvers of MATLAB
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.
Citation pour cette source
Alex Pedcenko (2026). N-body simulation with ode45 (https://fr.mathworks.com/matlabcentral/fileexchange/75202-n-body-simulation-with-ode45), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2020a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Remerciements
A inspiré : Bisection method
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.6 | fixed some typos |
||
| 1.0.5 | fixed trajectory length to plot inconsistency |
||
| 1.0.4 | Added total energy calculation |
||
| 1.0.3 | zipped 2 files |
||
| 1.0.2 | added function file nbody.m |
||
| 1.0.1 | fixed function filename |
||
| 1.0.0 |
