필터 지우기
필터 지우기

How does normr work?

조회 수: 3 (최근 30일)
Kenneth Morley
Kenneth Morley 2014년 1월 28일
답변: Jos (10584) 2014년 1월 28일
Yes i realize it returns a matrix with the values having a norm of 1 but how exactly does it do this? My knowledge of statistics is sorely lacking.
Thanks!

채택된 답변

Jos (10584)
Jos (10584) 2014년 1월 28일
You can open the m-file (type norm.m) and find something like this:
[mr,mc]=size(m);
if (mc == 1)
n = m ./ abs(m);
else
n=sqrt(ones./(sum((m.*m)')))'*ones(1,mc).*m;
end
That's all ...

추가 답변 (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