如何用matlab画地球模型,最好带有经纬线的那种!
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/07/11 14:48:10
如何用matlab画地球模型,最好带有经纬线的那种!
![如何用matlab画地球模型,最好带有经纬线的那种!](/uploads/image/z/7764647-23-7.jpg?t=%E5%A6%82%E4%BD%95%E7%94%A8matlab%E7%94%BB%E5%9C%B0%E7%90%83%E6%A8%A1%E5%9E%8B%2C%E6%9C%80%E5%A5%BD%E5%B8%A6%E6%9C%89%E7%BB%8F%E7%BA%AC%E7%BA%BF%E7%9A%84%E9%82%A3%E7%A7%8D%21)
% 绘制地球仪,并标出我们的位置
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);
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);