I am looking for a function to read/write points, lines and polygons from ESRI's shapefile format (as used in Arcview) for use in Matlab
Asked
Active
Viewed 9,430 times
2 Answers
7
From the Matlab mapping toolbox, use the shaperead
function
For example download the NOAA Interstate Highway shape file here, extract and then read data into Matlab using the function, S = shaperead('in101503.shp');

Elpezmuerto
- 5,391
- 20
- 65
- 79
7
If you do not have the Matlab mapping toobox, the very useful m_map package now has an m_shaperead() function which does a good job of reading shapefiles.
X = m_shaperead('filename'); % for filename.(dbf,shp,...)

Alex
- 5,863
- 2
- 29
- 46