help plotting map data
- From: "Stephan Zednik" <zednik@xxxxxxxx>
- Date: Wed, 5 Apr 2006 18:06:52 -0400
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
.
- Follow-Ups:
- Re: help plotting map data
- From: Stephan zednik
- Re: help plotting map data
- Prev by Date: Re: What am I doing wrong here
- Next by Date: From transfert Matrix to state representation
- Previous by thread: Please, i need some help with the 'Error while evaluating uicontrol Callback'
- Next by thread: Re: help plotting map data
- Index(es):
Relevant Pages
|