Tuesday, November 13, 2018
Quickly plot a shapefile in Matlab
Are you having a trouble in plotting shapefile in Matlab or the geoshow and mapshow is taking too much time to plot your shapefile then you can use the approach shown below. This is very quick.
shpfile=('landareas.shp');
S1 = shaperead(shpfile);
XX=[];YY=[];
for j=1:length(S1)
%Look for your X and Y variables in your shapefile
XX=[XX S1(j).X;];
YY=[YY S1(j).Y;];
end
plot(XX,YY)
Please leave a comment if you have any problem or if this solution has worked for you.
Related queries:
Plot fast shapefile.
Shapefile hangs, very slow
Quickly view a shapefile in Matlab
Posted by
vicky
at
3:43 AM
Subscribe to:
Post Comments (Atom)
Popular
- How to add or endorse Spouse/ Husband /Wife name of the passport
- New Rules to add spouse name in the Indian passport
- How to invite wife or spouse to Italy
- Traveling to Germany and schengen area is allowed with expired permit and poste intalian receipt (permesso+ricevuta)
- Online status of permesso di soggiorno on the website of Polizia di Stato
No comments:
Post a Comment