Angle or heading of a line relative to north from Lat/Long
27 次查看(过去 30 天)
显示 更早的评论
I have 4 inputs: Lat1, Long1, Lat2, Long2. What I'm trying to do is find the heading in degrees of the line made from connecting those 2 coordinates, with respect to north. An example shown below is from Google Earth to demonstrate the concept. I have the mapping toolbox if it is simpler leveraging that.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/727024/image.png)
0 个评论
采纳的回答
Chunru
2021-9-1
doc azimuth, distance for more details:
lat1 = 10; lon1 = 10;
lat2 = 10; lon2 = 20;
az = azimuth('rh', lat1, lon1, lat2, lon2)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!