首页 > 其他 > 详细

MATLAB—地图

时间:2017-09-15 22:18:39      阅读:343      评论:0      收藏:0      [点我收藏+]

一、画亚洲地图

1、worldmap()

(1)

clear all
worldmap(World)

技术分享

clear all
worldmap(World)%世界地图
load coast %载入海岸线
plotm(lat,long)%经纬度

技术分享

(2)

clear all
ax = worldmap(World);
setm(ax, Origin, [0 180 0])%更改经度,从0到180再到0
land = shaperead(landareas, UseGeoCoords, true);%陆地
geoshow(ax, land, FaceColor, [0.5 0.7 0.5])

技术分享

 

clear all
ax = worldmap(World);
setm(ax, Origin, [0 180 0])%更改经度,从0到180再到0
land = shaperead(landareas, UseGeoCoords, true);
geoshow(ax, land, FaceColor, [0.5 0.7 0.5])
lakes = shaperead(worldlakes, UseGeoCoords, true);
geoshow(lakes, FaceColor, blue)
rivers = shaperead(worldrivers, UseGeoCoords, true);
geoshow(rivers, Color, blue)
cities = shaperead(worldcities, UseGeoCoords, true);
geoshow(cities, Marker, ., Color, red)

技术分享

land = shaperead(landareas, UseGeoCoords, true)%陆地  后者参数x,y为经纬度
geoshow(land, FaceColor, [0.5 0.7 0.5])

技术分享

 

MATLAB—地图

原文:http://www.cnblogs.com/ruo-li-suo-yi/p/7528554.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!