Normalize vector in 3D space

回答(2 个)

V = V./norm(V);
The default for norm is the 2-norm, so what you want.

类别

帮助中心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!

Translated by