How do I overlay 2-dimensional (double) data onto a map of the US show state boundaries?

조회 수: 2 (최근 30일)
Hi,
I've been trying to overlay a 2-d matrix onto a map of the US that shows the boundaries of the states. I can plot usastatehi or my data, but not both on the same figure. I've tried things like plotting usastatehi and then when I try to use 'hold on;surfm(lat,lon,myData);hold off' I only see the data. I was hoping the two plots would act like different layers, but this is not happening.
thanks -- Jeff
  댓글 수: 1
Jeffrey White
Jeffrey White 2015년 12월 2일
Hi, I was able to do it by 1:) geoshow(myData,myTopoRef,'displaytype','texturemap') and 2) loading the lat, long data from usastatehi into separate vectors and then using geoshow(statesLat,statesLon,'color','k')

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by