unit3DVectorizeByRo​w

Make 3-D vector(s) have unit length via normalization.

您现在正在关注此提交

Given (matrix of row) 3-D non-zero vector(s), scale vector(s) to be of length 1.
Returns coordinates of scaled vector(s), after dividing by the norm(s).

引用格式

Seth Wagenman (2026). unit3DVectorizeByRow (https://ww2.mathworks.cn/matlabcentral/fileexchange/78769-unit3dvectorizebyrow), MATLAB Central File Exchange. 检索时间: .

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.2.0

got rid of main for loop using idea at https://stackoverflow.com/a/13365644/12763497

1.1.0

Added argument to specify whether only passing a single vector vs. a matrix of row vectors; also explicitly specified that zero-length vectors are not allowed.

1.0.0