Angle between two azimuth, elevation vectors.

15 ビュー (過去 30 日間)
David Sanipatin
David Sanipatin 2021 年 8 月 8 日
コメント済み: David Sanipatin 2021 年 8 月 8 日
I have two vectors from a siteviewer simulation in [Azimuth,Elevation] form, and I need the angle between these two.
AzEl1=[-126,89];
AzEl2=[12,3];
Thanks in advance.

採用された回答

DGM
DGM 2021 年 8 月 8 日
Consider:
AzEl1 = [0 45];
AzEl2 = [45 0];
% put in vector form
a = [[cosd(AzEl1(1)) sind(AzEl1(1))] * cosd(AzEl1(2)) sind(AzEl1(2))];
b = [[cosd(AzEl2(1)) sind(AzEl2(1))] * cosd(AzEl2(2)) sind(AzEl2(2))];
th = acosd(dot(a,b))
th = 60.0000
This might be simpler with some other tools I'm unfamiliar with.
  1 件のコメント
David Sanipatin
David Sanipatin 2021 年 8 月 8 日
It works for me, thanks for your prompt reply!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by