how to plot a map

5 次查看(过去 30 天)
ahmad Saad
ahmad Saad 2023-10-27
评论: ahmad Saad 2023-10-28
Hi,
i need to know how i can plot this map ?
  8 个评论
Dyuman Joshi
Dyuman Joshi 2023-10-27
Yes, that's what I am saying.
The countries will be shown as white, but the oceans, seas and any water bodies will be gray in color. You can not change that.

请先登录,再进行评论。

采纳的回答

Cris LaPierre
Cris LaPierre 2023-10-27
编辑:Cris LaPierre 2023-10-27
load coastlines.mat
axesm('mercator','MapLatLimit',[5 35],'MapLonLimit',[60 100],'grid','on',...
'MLineLocation',10,'PLineLocation',5,'MeridianLabel','on','ParallelLabel','on',...
'LabelFormat','none','MLabelParallel',0)
plotm(coastlat,coastlon)
plotm(17.842,73.089,'r*')
plotm(9.177,77.852,'b*')
xlabel('LONGITUDE(Deg. East)')
ylabel('LATITUDE (Deg. North)')
  6 个评论
Dyuman Joshi
Dyuman Joshi 2023-10-28
Just a note, axesm and plotm requires Mapping Toolbox.
ahmad Saad
ahmad Saad 2023-10-28
Thanks, it is much better.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by