フィルターのクリア

Angle or heading of a line relative to north from Lat/Long

40 ビュー (過去 30 日間)
Justin Bell
Justin Bell 2021 年 9 月 1 日
コメント済み: Justin Bell 2021 年 9 月 2 日
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.

採用された回答

Chunru
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)
az = 90
  1 件のコメント
Justin Bell
Justin Bell 2021 年 9 月 2 日
Thank you so much, I spent half an hour searching and this never came up with the search terms I could think of.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by