How to perform L2 normalization?

25 ビュー (過去 30 日間)
Sujeeth Kumaravel
Sujeeth Kumaravel 2014 年 8 月 4 日
回答済み: Roger Stafford 2014 年 8 月 4 日
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 Center および File ExchangeElectrical Block Libraries についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by