Variation of S. Henderson's n-Body Simulation
Version 1.0.1 (4,47 KB) von
RaB
Added some features for Silas Hendersons n-body simulation. Please refer to link at bottom of Description
Took the liberty to add some fun features to the nbody function to make it more "cosmic".
Added features
- optional rotation with adjustable distance exponent (i.e. 1/r^k)
- optional central massive object
- optional collision - inelastic
- zoom - allows to go to center where the "action" is or to zoom out to find bodies that have been flung out far
- color per body's mass, or let's say "star class"
- option to make all bodies same massOriginal by Silas Henderson (2021). N-body animation
(https://www.mathworks.com/matlabcentral/fileexchange/69834-n-body-animation)
MATLAB Central File Exchange. Retrieved May 6, 2021.
Zitieren als
RaB (2025). Variation of S. Henderson's n-Body Simulation (https://www.mathworks.com/matlabcentral/fileexchange/93970-variation-of-s-henderson-s-n-body-simulation), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2021a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.1 | added screenshot |
||
1.0.0 |