Angle between two vectors in 3d
古いコメントを表示
Hello,
I have two vectors in 3d and i want to find the angle between those two vectors.
Thanks in advance
採用された回答
その他の回答 (3 件)
Lucas García
2011 年 9 月 20 日
You can use the subspace function to find the angle between two subspaces:
>> subspace([1;0;0],[0;1;0])
ans =
1.5708
1 件のコメント
Yadu Bhusal
2021 年 8 月 5 日
I have 3 points in a line( suppose) and one calculations point separately. A(1,1,1)B(2,2,2)C(3 3 3) in a line and P( 5 5 5) as separate. I want to calculate angle A which is subtended by distance AP. And similar for BP,CP. Is it possible to find angles or make program to calculate these angles at once?
David Young
2011 年 9 月 20 日
acos(dot(v1, v2) / (norm(v1) * norm(v2)))
EDIT: Having seen Jan Simon's reply, and the long thread at CSSM that he refers to, I realise that the formula I proposed is not a particularly good one. The two methods in Jan's reply are both likely to be preferable.
rashi
2018 年 6 月 15 日
0 投票
hi I want to find the angle in azimuth and elevation plane between wo vectors in 3d. please help
カテゴリ
ヘルプ センター および File Exchange で Operators and Elementary Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!