How to perform L2 normalization?

 Risposta accettata

If v is the vector do:
v = v/norm(v);
(The 'norm' function gives L2 norm as a default.)

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by