function M = normalizeC(M)
% Normalizes the columns of the matrix M.

%   Copyright 1986-2013 The MathWorks, Inc.
nc = size(M,2);
for ct=1:nc
   mu = norm(M(:,ct));
   if mu>0 && mu~=1
      M(:,ct) = M(:,ct)/mu;
   end
end