N-body animation

版本 1.31 (1.5 KB) 作者: Silas Henderson
System of point-masses following inverse square law
216.0 次下载
更新时间 2020/9/17

查看许可证

Short script for N-body simulation. Parameters adjustable in script.

https://youtu.be/6kEXKts7JBY

Notes:
Default is 50 planets.
Try 15 planets if animation is slow/chunky.
Uses SI Euler, so main computational cost is graphics.
Dot sizes are proportional to planet masses.
Feel free to modify/improve.

引用格式

Silas Henderson (2024). N-body animation (https://www.mathworks.com/matlabcentral/fileexchange/69834-n-body-animation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Gravitation, Cosmology & Astrophysics 的更多信息
社区
Distance Learning 社区中有更多文件

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.31

fix name, update video

1.3

replace 'plot, hold on' with 'line'. Also, reformat

1.1.125

remove comments

1.1.124

description

1.1.122

description

1.1.121

comment style

1.1.12

script formatting / style

1.1.11

update description

1.1.1

tags

1.1.0

Clarify Description

1.0.9

none

1.0.8

clip link

1.0.7

okay done for now

1.0.5

none

1.0.4

none

1.0.3

none

1.0.2

none

1.0.1

none

1.0.0