figure
worldmap('world')
% 添加海洋和陆地的颜色
oceanColor = [0.5 0.7 0.9]; % 海洋颜色
landColor = [0.5 0.5 0.5]; % 陆地颜色
s = shaperead('landareas', 'UseGeoCoords', true); % 读取陆地形状数据
geoshow([s.Lat], [s.Lon], 'DisplayType', 'polygon', 'FaceColor', landColor);
geoshow('worldlakes.shp', 'FaceColor', oceanColor); % 添加海洋颜色
% 绘制世界地图
figure;
worldmap('world');
% 添加海洋和陆地的颜色
oceanColor = [0.5 0.7 0.9]; % 海洋颜色
landColor = [0.5 0.5 0.5]; % 陆地颜色
s = shaperead('landareas', 'UseGeoCoords', true); % 读取陆地形状数据
geoshow([s.Lat], [s.Lon], 'DisplayType', 'polygon', 'FaceColor', landColor);
geoshow('worldlakes.shp', 'FaceColor', oceanColor); % 添加海洋颜色
% 在地图上绘制圆形
lat0 = 40;
lon0 = 120;
R = 500; % km
[latCirc, lonCirc] = scircle1(0,0,R,[],earthRadius('km'));
plotm(latCirc,lonCirc,'r');
生成世界地图并在地图上画圆圈
于 2023-04-29 23:08:34 首次发布