开发者

joining coordinates

I have two sets of coordinates

lat1 is 144.9216
lat2 is 151.0393
long1 is -37.7784
long2 is -33.8131

These are the coordinates for Melbourne and Sydney. I want these two sets of points to be connected using a line but am having a lot of trouble.

Here is what i came up with

worldmap('Australia')
plotm([lat1,long2],[lat1,long2],'.')

Does anyo开发者_运维百科ne have any ideas?


when using

plotm([lat1,long2],[lat1,long2],'.')

you are specifying that you want a dot, simply use

plotm([lat1,long1],[lat2,long2])

and it will plot a line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜