annotate DL/RLS-DLA/private/normcols.m @ 63:e08af264ef93

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