https://github.com/pmocz/nbody-matlab
Vectorized N-body code (Matlab)
https://github.com/pmocz/nbody-matlab
astrophysics n-body scientific-computing tutorial
Last synced: 10 months ago
JSON representation
Vectorized N-body code (Matlab)
- Host: GitHub
- URL: https://github.com/pmocz/nbody-matlab
- Owner: pmocz
- License: gpl-3.0
- Created: 2020-09-12T19:17:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T07:09:20.000Z (over 2 years ago)
- Last Synced: 2025-03-26T02:04:26.648Z (10 months ago)
- Topics: astrophysics, n-body, scientific-computing, tutorial
- Language: MATLAB
- Homepage: https://medium.com/swlh/create-your-own-n-body-simulation-with-matlab-22344954228e
- Size: 127 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nbody-matlab
Vectorized N-body code (Matlab)
## Create Your Own N-body Simulation (With Matlab/Octave)
### Philip Mocz (2020) Princeton Univeristy, [@PMocz](https://twitter.com/PMocz)
### [📝 Read the Algorithm Write-up on Medium](https://medium.com/swlh/create-your-own-n-body-simulation-with-matlab-22344954228e)
Simulate orbits of stars interacting due to gravity
Code calculates pairwise forces according to Newton's Law of Gravity
```
matlab nbody.m
```
