|
Divya <divya_puramshetty@yahoo.co.in> wrote in message <ef4ddea.-1@webcrossing.raydaftYaTP>...
> Using linem ...........we can draw line on map.........but i donno
> why i am not able to draw a line.......
> i am writing the foll code
>
> figure
> worldmap('india','patch');
> linem([20 80],[25 85]);
>
> syntax is linem(lat,lon)............but if i do so......i am geting a
> single point on the map..........
>
> can anyone help me out????
In the syntax linem(LAT, LON), LAT is a vector of latitudes and LON is a vector of longitudes. But it looks as if you've grouped your coordinates in point-wise pairs. If, instead, you call linem like this:
linem([20 25],[80 85])
you'll get a line in the middle of your map connecting 20N, 80E to 25N, 85E.
Rob Comer
Mapping Toolbox Development
MathWorks
|