1
votes

I'm trying to calculate the angle between 2 geographic (Latitude,Longitude) points in MATLAB. The points are: (-65.226,125.5) and (-65.236,125.433).

I used the MATLAB function, azimuth, as:

azimuth(-65.226,125.5,-65.236,125.433)

I convert the result to radians, and plotting this using quiver, I get the following plot:

difference in azimuth

I want the red vector to point from the top right dot to the bottom left dot.

The points are at fairly high latitude (~65S), and the separation of the points is low (about 0.1 degrees). Thus, I can't really understand how the curvature of the earth could affect the azimuth prediction that much..

Does anyone have any experience with azimuth in MATLAB, or have a better suggestion to calculating the angle between the coordinate pairs?

Thanks!

1
Can you not just treat them as cartesian vectors: stackoverflow.com/questions/11756539/direction-of-a-vector/… ? - Dan
You almost reached Antarctica with these points!!! - Autonomous
I don't think you can treat them as cartesian... since they're on the sphere, so to speak?And yes, they're points along the continental shelf seas of Antarctica :) - David_G

1 Answers

1
votes

Here you can detailed information and formulae on how to find angle between two latitude-longitude points.