How to exclude a continent from worldmap in MATLAB (eg antarctica)
5 次查看(过去 30 天)
显示 更早的评论
I have been trying the following to attempt removing Antarctica from the world map but the output shifts the worldmap. I used:
worldmap({'America','Asia','Europe','Africa','Australia'});
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168598/image.jpeg)
0 个评论
采纳的回答
Matt Sprague
2018-1-11
The worldmap function constructs map axes for given regions in the world. It specifies the map axes limits based on the regions input. To remove Antarctica while not shifting the region displayed on the axes, first display the full worldmap and then remove the Antarctica section of your plot using logical indexing. An example using the coastlines data is below using the rough cutoff of 63 degrees south:
worldmap('World')
load coastlines
antarcticaregion = coastlat < -63;
plotm(coastlat(~antarcticaregion),coastlon(~antarcticaregion))
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mapping Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!