vectors u = (2,1,0) and v = (0,1,2). calculate cos thetha where thetha is the angle between u and v
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akzeptierte Antwort
Explorer
am 15 Mär. 2016
u = [2 1 0];
v = [0 1 2];
costheta = dot(u,v)/(norm(u)*norm(v))
theta = acos(costheta) %n angle
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!