Clear Filters
Clear Filters

what mean normr in matlab??

6 views (last 30 days)
mina
mina on 2 Mar 2013
what mean normr in matlab??

Accepted Answer

Wayne King
Wayne King on 2 Mar 2013
Edited: Wayne King on 2 Mar 2013
That is a function in the Neural Network Toolbox that normalizes the rows of the matrix to have l2 norm.
For example:
X = randn(10,4);
Y = normr(X);
Now if you check:
for kk = 1:size(Y,1)
norm(Y(kk,:),2)
end
They all have unit norm.
  1 Comment
Greg Heath
Greg Heath on 2 Mar 2013
Before asking questions like this try
help normr
doc normr
type normr
Greg

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!