how can i solve this angle between vectors?

Find the angle between the vectors a and b given that a = 3; b = 5; and a-b = 7:

回答 (2 件)

Andrei Bobrov
Andrei Bobrov 2015 年 12 月 4 日
編集済み: Andrei Bobrov 2015 年 12 月 4 日

1 投票

Law of cosines

a = 3; 
b = 5;
c = 7; % c = a - b
alpha = acos((a.^2 + b.^2 - c.^2)./(2*a*b));
VBBV
VBBV 2023 年 3 月 15 日

0 投票

a = 3;
b = 5;
c = 7;
alpha = acosd((a.^2 + b.^2 - (c).^2)./(2*a*b))
alpha = 120.0000

カテゴリ

質問済み:

2015 年 12 月 4 日

回答済み:

2023 年 3 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by