comparison DL/RLS-DLA/private/normcols.m @ 60:ad36f80e2ccf

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