i have .shp file for India. How to plot lat lon data on it, so that it remain in bacground.

답변 (1개)

KSSV
KSSV 2019년 5월 10일
편집: KSSV 2019년 5월 10일

0 개 추천

S = shaperead(filename) ;
Now you have your lat, lon coordinates in S..extract them and plot. Mostly the following shall work .
S = shaperead(filename) ;
lon = [S(:).X]';
lat = [S(:).Y]';
plot(lon,lat)
NOTE: You have asked more or less the same question here: https://in.mathworks.com/matlabcentral/answers/461212-add-world-map-background-to-contour-plot?s_tid=prof_contriblnk. You should comment/ accept your question there and ask for another question. It is not fair to leave the answer without giving any credits.

카테고리

도움말 센터 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2019년 5월 10일

편집:

2019년 5월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by