annotate Problems/private/normcols.m @ 10:207a6ae9a76f version1.0

(none)
author idamnjanovic
date Mon, 22 Mar 2010 15:06:25 +0000
parents
children
rev   line source
idamnjanovic@10 1 function y = normcols(x)
idamnjanovic@10 2 %NORMCOLS Normalize matrix columns.
idamnjanovic@10 3 % Y = NORMCOLS(X) normalizes the columns of X to unit length, returning
idamnjanovic@10 4 % the result as Y.
idamnjanovic@10 5 %
idamnjanovic@10 6 % See also ADDTOCOLS.
idamnjanovic@10 7
idamnjanovic@10 8
idamnjanovic@10 9 % Ron Rubinstein
idamnjanovic@10 10 % Computer Science Department
idamnjanovic@10 11 % Technion, Haifa 32000 Israel
idamnjanovic@10 12 % ronrubin@cs
idamnjanovic@10 13 %
idamnjanovic@10 14 % April 2009
idamnjanovic@10 15
idamnjanovic@10 16
idamnjanovic@10 17 y = x*spdiag(1./sqrt(sum(x.*x)));