An open API service indexing awesome lists of open source software.

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)

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
```

![Simulation](./nbody.png)