Galaxy model
Versione 3.0 (1,5 KB) da
Nicolas Douillet
A function to compute and display a galaxy point cloud (spiral or elliptic), with some tunable parameters (shape, number of arms, etc...)
Design your own galaxy ! :-)
For pedagogic / scientific diffusion purposes. Is not a rigorous astrophysical model.
F5 in galaxy_model.m or galaxy_model; in console to run the program and plot the figure.
A lot of parameters -curvature, number of arms, number of stars and many others- are available in the file header to tune the shape of the model.
Since these parameters are quite sensitive, my advice is to first test them individually -one by one- to understand their influence.
Please don't forget to rate this code if it helped you. Thanks ;-)
Some additional examples you can get with this code :
Spiral galaxy
Spiral galaxy