See https://github.com/tamaskis/planet3D-MATLAB or “DOCUMENTATION.pdf” for additional documentation and examples. Examples can also be found in “EXAMPLES.m”.
THE FOLDER “Images” MUST BE LOCATED IN THE SAME FOLDER AS “planet3D.m” OR THE FUNCTION WILL NOT WORK.
The "planet3D” function produces high resolution plots/drawings (in the generic “Figure” environment of the:
- Earth (day with clouds, day without clouds, night with clouds, and night without clouds)
- Moon
- Sun
- Mercury
- Venus
- Mars
- Jupiter
- Saturn
- Uranus
- Neptune
- Pluto
The "background" function can be used to change the plot background to be the Milky Way, the stars, or just a plain black background.
After plotting the celestial body, you can adjust all properties like you normally would (titles, axes labels, legends, axes limits, etc.). You can also use “hold on” and plot multiple celestial bodies in the same Figure window.
Tamas Kis (2021). 3D Earth and Celestial Bodies (planet3D) (https://github.com/tamaskis/planet3D-MATLAB/releases/tag/v2.0.4), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.