How to perform L2 normalization?

11 次查看(过去 30 天)
I have to perform L2 normalization on vectors. How do I do this in MATLAB?

采纳的回答

Roger Stafford
Roger Stafford 2014-8-4
If v is the vector do:
v = v/norm(v);
(The 'norm' function gives L2 norm as a default.)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by