vectors u = (2,1,0) and v = (0,1,2). calculate cos thetha where thetha is the angle between u and v

5 ビュー (過去 30 日間)
Please help

採用された回答

Explorer
Explorer 2016 年 3 月 15 日
u = [2 1 0];
v = [0 1 2];
costheta = dot(u,v)/(norm(u)*norm(v))
theta = acos(costheta) %n angle

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by