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