How to view a shape file in matlab

Illustration
alessio grechi - 2022-01-11T12:28:35+00:00
Question: How to view a shape file in matlab

Hello,   I have a .shp file of the country Ireland.   This is the file    I read the file into matlab using the code:   S = shaperead('Ireland.shp') My question is how can I view the map?   I would appreciate it if anybody had the time to show me.   Also, is it possible to overlay GPS data on a file of this type?  

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

 doc mapshow

It can be as simple as:

 S = shaperead(filename);
 mapshow(S);

As long as you have latitude and longitude, you can plot pretty much anything

 doc plotm

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!