help plotting map data



I am a fairly new matlab user and have never used the map toolbox
before.

I have an array of longitude coordinates, another of latitude
coordinates, and several arrays of different data that I wish to
plot. I need to plot the data on a 'continuous scale' (I think my
boss means interpolated color here) and ideally with an outline of
the state boundrys on the map (map is over the Ohio area).

My array of latitude is Lat and is <49864x1 double> longitude
is Lon and has the same dimension and data type as Lat. Z is the
data I wish to plot, it has the same dimension and data type as Lat
and Lon do.

I tried geoshow(Lat,Lon,Z); and got the error:

??? Error using ==> surface
Maxtrix dimensions must agree.

Eror in ==> map/private/renderMapData at 17
h = feval(str2func(mapdata.fcn), mapdata.args{:});

Error in ==> geoshow at 239
h = renderMapData(ax, mapdata);

Error in ==> script at 25
geoshow(Lat,Lon,Z);

*** end error message

So how do I use geoshow (or another function if I am using the wrong
one) to map the Z data on the corresponding Lat and Lon locations and
ideally draw the Ohio state boundry?

Thanks,
Stephan
.



Relevant Pages

  • Re: help plotting map data
    ... I am a fairly new matlab user and have never used the map toolbox ... I have an array of longitude coordinates, ... My array of latitude is Lat and is longitude ...
    (comp.soft-sys.matlab)
  • Re: Contour plot using m_map
    ... > Hi there I am trying to produce a contour plot onto a map using longitude and latitude data... ... How do i associate the values held in x and y with the Long and Lat values of the grid? ...
    (comp.soft-sys.matlab)
  • Re: Longitude and latitude map
    ... What I need in a map system in which you click on the map and it ... lat and its at points 243,200 x,y on my map. ... This is really more of a programming task than a math ... Coordinates of latitude and longitude are going to be ...
    (sci.math)
  • Re: Longitude and latitude map
    ... What I need in a map system in which you click on the map and it ... provides the calculated longtitude and latitude of the place on the ... lat and its at points 243,200 x,y on my map. ... Are the longitude and latitude lines vertical ...
    (sci.math)
  • Re: Longitude and latitude map
    ... What I need in a map system in which you click on the map and it ... provides the calculated longtitude and latitude of the place on the ... lat and its at points 243,200 x,y on my map. ...
    (sci.math)