Plot earth

Plot earth in 3D
Updated 14 Jul 2014

View License

Plot earth in 3D sphere
Several maps and resolutions are available
More comprehensive map collection is available at

Cite As

Bruno Luong (2024). Plot earth (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Cubed sphere

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Fix casting issue (change behavior of sub2ind in recent MATLAB)

Fix the Plot2dMap lowercase bug

Read tiff/jpg maps
Spheroid shape
See also new description

Correct bug of overflow colormap when process original png file

Now can plot NEO maps

better use of memory,
correct BUG for color-indexing,
add 'NColors' property,
indexing color is now default option,
small gaps between cube-faces are now removed

Bug corrected (occurs for large samplestep)
Few minor memory enhancement