Normalize vector in 3D space

Risposte (2)

Matt J
Matt J il 25 Gen 2019
Modificato: Matt J il 25 Gen 2019
X= v./sqrt( sum(v.^2,2) );
V = V./norm(V);
The default for norm is the 2-norm, so what you want.

Categorie

Richiesto:

il 25 Gen 2019

Risposto:

il 26 Gen 2019

Community Treasure Hunt

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

Start Hunting!

Translated by