How to perform L2 normalization?
25 views (last 30 days)
Show older comments
Sujeeth Kumaravel
on 4 Aug 2014
Answered: Roger Stafford
on 4 Aug 2014
I have to perform L2 normalization on vectors. How do I do this in MATLAB?
0 Comments
Accepted Answer
Roger Stafford
on 4 Aug 2014
If v is the vector do:
v = v/norm(v);
(The 'norm' function gives L2 norm as a default.)
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!