Normalize the rows of a matrix
Syntax
normr(M)
Description
normr(M) normalizes the columns of M to a length of 1.
M
Examples
m = [1 2; 3 4]; normr(m) ans = 0.4472 0.8944 0.6000 0.8000
See Also
normc
© 1994-2005 The MathWorks, Inc.