How to perform L2 normalization?

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

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by