Miscellaneous Toolkit - normc


Function File: x = normc (M)

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

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

   ans =

   0.31623   0.44721
   0.94868   0.89443

 

See also: normr.