How to perform L2 normalization?

20 visualizaciones (últimos 30 días)
Sujeeth Kumaravel
Sujeeth Kumaravel el 4 de Ag. de 2014
Respondida: Roger Stafford el 4 de Ag. de 2014
I have to perform L2 normalization on vectors. How do I do this in MATLAB?

Respuesta aceptada

Roger Stafford
Roger Stafford el 4 de Ag. de 2014
If v is the vector do:
v = v/norm(v);
(The 'norm' function gives L2 norm as a default.)

Más respuestas (0)

Categorías

Más información sobre Electrical Block Libraries en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by