How to exclude a continent from worldmap in MATLAB (eg antarctica)

3 ビュー (過去 30 日間)
Paj
Paj 2018 年 1 月 9 日
回答済み: Matt Sprague 2018 年 1 月 11 日
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'});

採用された回答

Matt Sprague
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 件)

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by