I have to perform L2 normalization on vectors. How do I do this in MATLAB?

 Akzeptierte Antwort

Roger Stafford
Roger Stafford am 4 Aug. 2014

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Electrical Block Libraries finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by