Reading Contour Shape File from ArcGIS in MATLAB
3 views (last 30 days)
Show older comments
Jesse Gabriel on 31 Oct 2020
I have a contour shapefile from ArcGIS. I need to extract points along the contour lines so that I will be able to calculate slope and do other calculations using those slopes. To do that, I want to use MATLAB to read the contour shapefile. Is this possible? Can anyone with the expertise help me?
Thanks in advance.
Mario Malic on 31 Oct 2020
Check here how to import the data https://www.mathworks.com/help/matlab/import_export/import-data-interactively.html
KSSV on 31 Oct 2020
As you have a shape file....you need to read that shape file into matlab. To read shape file read about shaperead.
S = shaperead(filename) ;
Now S is a structrue with all your data information of shape file. You can do what you want with the data.
Find more on Adding custom doc in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!