Spiral Galaxy

Version 1.1.0.1 (868 KB) by Enkh
Spiral galaxy simulation using the density wave theory
644 Downloads
Updated 1 Sep 2016

View License

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.

Cite As

Enkh (2024). Spiral Galaxy (https://www.mathworks.com/matlabcentral/fileexchange/55633-spiral-galaxy), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Gravitation, Cosmology & Astrophysics in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.1

Updated license

1.1.0.0

--reduced gif file size

1.0.0.0

--added hyperlinks to web sources