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

 採用された回答

Roger Stafford
Roger Stafford 2014 年 8 月 4 日

1 投票

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by