How to perform L2 normalization?

35 Ansichten (letzte 30 Tage)
Sujeeth Kumaravel
Sujeeth Kumaravel am 4 Aug. 2014
Beantwortet: Roger Stafford am 4 Aug. 2014
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
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 Help 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