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

 Accepted Answer

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

More Answers (0)

Categories

Find more on Simulink 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!