How to perform L2 normalization?

조회 수: 32 (최근 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 CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by