Normalize vector in 3D space

Antworten (2)

Matt J
Matt J am 25 Jan. 2019
Bearbeitet: Matt J am 25 Jan. 2019

0 Stimmen

X= v./sqrt( sum(v.^2,2) );
John D'Errico
John D'Errico am 26 Jan. 2019

0 Stimmen

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

Kategorien

Gefragt:

am 25 Jan. 2019

Beantwortet:

am 26 Jan. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by