Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Subspace problem

1 回表示 (過去 30 日間)
Umit
Umit 2012 年 2 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I have 2 2Dvectors that I need to compute the angle between them.
v1 = [1; 0]
v2 = [-1; 1]
subspace(v1, v2) = 1.5708 which is false
while
acos(dot(v1, v2) / (norm(v1) * norm(v2))) = 2.3562 which is true
Why subspace gives me wrong answer? Shouldn't it also gives me 2.3562? Can someone explains me why subspace works differently
Thanks

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by