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 CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by