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 ...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!