unit3DVectorizeByRo​w

版本 1.2.0 (1.8 KB) 作者: Seth Wagenman
Make 3-D vector(s) have unit length via normalization.
24.0 次下载
更新时间 2020/8/5

查看许可证

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 (2024). unit3DVectorizeByRow (https://www.mathworks.com/matlabcentral/fileexchange/78769-unit3dvectorizebyrow), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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