필터 지우기
필터 지우기

Adding map of the east coast to plotted lat/longs

조회 수: 2 (최근 30일)
charles atlas
charles atlas 2015년 4월 9일
답변: Kelly Kearney 2015년 4월 13일
All,
I have a GUI that plots a number of lat/longs all over the east coast and the gulf.
What I want is to underlay a map on the plotted lat/long positions.
Does anyone know how to do that?
If there is a way to do that with a normal figure, then maybe I can figure out how to implement that into my GUI.
R/, C. Atlas

답변 (2개)

Thomas Koelen
Thomas Koelen 2015년 4월 9일
map=imread(mapimage);
imshow(map);
hold on
plot(positions,'-')
I'm not sure what kind of filetypes you have so I can't anser fully but have you tried this?
  댓글 수: 1
charles atlas
charles atlas 2015년 4월 13일
This is probably going to sound like a really stupid question, but: - What is mapimage denoting in your above code? - by positions do you mean the lat and longitudes in a 2-by-X matrix? With X denoting the number of positions that I want to plot?

댓글을 달려면 로그인하십시오.


Kelly Kearney
Kelly Kearney 2015년 4월 13일
Do you have the Mapping Toolbox? Do you actually have the data for a map already... geotiff, shapefile, or something like that?
If yes to the Mapping Toolbox, it comes with a few datasets with coastline info (coast.mat, conus.mat, landareas.shp, usastatelo.shp, usastatehi.shp) as well as functions for reading in higher-resolution data that you can download separately.
If you don't have access to the Mapping Toolbox, I recommend m_map. It provides several tools for setting up a basemap for plots.

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by