Mercurial > hg > smallbox
comparison util/ksvd utils/normcols.m @ 70:c3eca463202d
(none)
author | idamnjanovic |
---|---|
date | Wed, 16 Mar 2011 14:16:57 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
69:5f1f436057ca | 70:c3eca463202d |
---|---|
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))); |