image thumbnail

EARTH MAP BY MATLAB

version 1.0.0 (8.95 KB) by Tesfaye Girma
WE CAN DRAW THE EARTHS MAP BY USING MATAB CODE

3 Downloads

Updated 21 Jul 2021

View License

R=6378.1;
[xx, yy, zz] = sphere(100);
surf(R*xx, R*yy, R*zz);
r = 0.8; g = r; b = r;
map = [r g b
0 0 0
r g b];
colormap(map)
caxis([-R/100 R/100])
shading interp
% Draw and label the X, Y and Z axes
line([0 2*R], [0 0], [0 0]); text(2*R, 0, 0, 'X')
line( [0 0], [0 2*R], [0 0]); text( 0, 2*R, 0, 'Y')
line( [0 0], [0 0], [0 2*R]); text( 0, 0, 2*R, 'Z')

Cite As

Tesfaye Girma (2021). EARTH MAP BY MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/96158-earth-map-by-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!