利用matlab画地球图形

分类: Math_and_Matlab |
再一次体验到matlab的强大功能,数学的强大支撑,安装matlab2013后点击右上角help功能可以出现以前的工具箱,帮助等资料。
matlab 2013工具箱有Mapping
Toolbox,里面就有讲到地球绘制的相关例子,需要时可以到这里学习,标记一下。另外百度知道里也有一个不错的例子:
% 绘制地球仪,并标出我们的位置
cla reset;
load topo;
[x y z] = sphere(45);
s = surface(x,y,z,'FaceColor','texturemap','CData',topo);
colormap(topomap1);
% Brighten the colormap for better annotation visibility:
brighten(.6)
% Create and arrange the camera and lighting for better visibility:
campos([1.3239 -14.4250 9.4954]);
camlight;
lighting gouraud;
axis off vis3d;
% Set the x- and y-coordinates of the textarrow object:
x = [0.7698 0.5851];
y = [0.3593 0.5492];
% Create the textarrow object:
txtar = annotation('textarrow',x,y,'String','We are here.','FontSize',14);
http://s13/mw690/002fwwXTzy6E0TczMegfc&690