Normalize vector in 3D space

Respuestas (2)

Matt J
Matt J el 25 de En. de 2019
Editada: Matt J el 25 de En. de 2019

0 votos

X= v./sqrt( sum(v.^2,2) );
John D'Errico
John D'Errico el 26 de En. de 2019

0 votos

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

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2019

Respondida:

el 26 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by