MATLAB Answers

0

How to perform L2 normalization?

Asked by Sujeeth Kumaravel on 4 Aug 2014
Latest activity Answered by Roger Stafford on 4 Aug 2014
I have to perform L2 normalization on vectors. How do I do this in MATLAB?

  0 Comments

Sign in to comment.

1 Answer

Answer by Roger Stafford on 4 Aug 2014
 Accepted Answer

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

  0 Comments

Sign in to comment.