如何用matlab画地球模型,最好带有经纬线的那种!

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 03:54:40

如何用matlab画地球模型,最好带有经纬线的那种!
如何用matlab画地球模型,最好带有经纬线的那种!

如何用matlab画地球模型,最好带有经纬线的那种!
% 绘制地球仪,并标出我们的位置
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);