Miscellaneous Toolkit - normr


Function File: x = normr (M)

Normalize the rows of a matrix to a length of 1 and return the matrix.

   M=[1,2; 3,4];
   normr(M)

   ans =

   0.44721   0.89443
   0.60000   0.80000

 

See also: normc.