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

1 view (last 30 days)
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 Comment
Jeffrey White
Jeffrey White on 2 Dec 2015
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')

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!