📄 vangle.m
字号:
function angles = vangle(u, v)%angles = VANGLE(u, v)%%Get angles between vectors%%Input:% U, V - vectors (matrices of the size N x M, where N is the number of% vectors and M is their dimension)%%Output:% ANGLES - angles between vectors in degrees (0-180)%%See also:% VDIFF%%Radim Halir, Charles University Prague, halir@ms.mff.cuni.cz%Created: 2.7.1997%Last modified 2.7.1997cosangles = sum(u .* v, 2) ./ (vsize(u) .* vsize(v));angles = acos(cosangles) / pi * 180;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -