How does normr work?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kenneth Morley
am 28 Jan. 2014
Beantwortet: Jos (10584)
am 28 Jan. 2014
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!
0 Kommentare
Akzeptierte Antwort
Jos (10584)
am 28 Jan. 2014
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!