Normalize vector in 3D space

回答(2 个)

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

类别

在 帮助中心 和 File Exchange 中查找有关 NaNs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by