How to plot polygon from shapefile in Matlab

조회 수: 96(최근 30일)
Yoni Verhaegen -WE-1718-
Yoni Verhaegen -WE-1718- 2021년 1월 23일
답변: Deepak Meena 2021년 1월 29일
Hi all,
I have the following polygon, which should represent the borders of Belgium, The Netherlands and Luxemburg.
I am however not able to plot these using Matlab on top of an imagesc. Can anyone help me? The file is in attachment.
T=shaperead('BENELUX_POLYGON.shp','usegeo', true);
Thanks already


Deepak Meena
Deepak Meena 2021년 1월 29일
Hi Yoni ,
shaperead only Read vector features and attributes from shapefile, it won't plot those data.
To plot those shapefile you need to use mapshow. I tried this on my end :
T=shaperead('BENELUX_POLYGON.shp','usegeo', true);
and I got the following result :

Community Treasure Hunt

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

Start Hunting!

Translated by