Normalize vector in 3D space
조회 수: 10 (최근 30일)
이전 댓글 표시
Hello,
I'm trying to normalize a vector in 3d space into a unit vector
댓글 수: 0
답변 (2개)
John D'Errico
2019년 1월 26일
V = V./norm(V);
The default for norm is the 2-norm, so what you want.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!