This live script demonstrates a simulation of a spiral galaxy in MATLAB using density wave theory. The density wave theory suggests that the spiral arms of a galaxy are not static, but rather stars move in and out of it based on their own elliptical orbits around the galaxy, such that the arms are a wave of density flowing through the disc. It gives the galaxy its characteristic appearance where the stars rotate in orbit but the shape maintains in place.
引用
Enkh (2026). Spiral Galaxy (https://jp.mathworks.com/matlabcentral/fileexchange/55633-spiral-galaxy), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Gravitation, Cosmology & Astrophysics についてさらに検索