• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

使用MATLAB画出地球仪图形

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

代码如下所示:

% 绘制地球仪,并标出我们的位置

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]);
campos([0 0 0]);
 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','This is China.','color','red','FontSize',14);

运行后的结果图


代码如下:

 %绘制地球仪
 clear;
 figure
 grs80=almanac('earth','grs80');
 ax=axesm('globe','Geoid',grs80,'Grid','on','GLineStyle','-','Gcolor','yellow');
 set(ax,'Position',[0 0 1 1]);
 view(3);
 axis equal off vis3d;
 set(gcf,'Renderer','opengl');
 load topo
 geoshow(topo,topolegend,'DisplayType','texturemap');
 demcmap(topo);

运行结果如图所示



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
matlab中uigetfile命令的应用发布时间:2022-07-18
下一篇:
【matlab】命令行窗口一直不停的输出ans=1?发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap