버전 1.2.0 (1.76 KB) 작성자: Seth Wagenman
Make 3-D vector(s) have unit length via normalization.
다운로드 수: 23
업데이트 날짜: 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!
버전 게시됨 릴리스 정보

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


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.