vorient.m

来自「一个很好用的摄像机标定程序」· M 代码 · 共 25 行

M
25
字号
function vectors = vorient(vectors)%vectors = VORIENT(vectors)%%Orient vectors given as rows%%See also:%  VSIZE, VNORM%%Note:%  Vector is oriented if its coordinate which is maximal in magnitude%  is positive.%%Radim Halir, Charles University Prague, halir@ms.mff.cuni.cz%Created: 28.2.1997%Last modified 9.4.1997change = (max(vectors, 2) + min(vectors, 2)) < 0;if (length(change) == 1)  if (change)    vectors = - vectors;  endelse  vectors(change, :) = - vectors(change, :);end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?