We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f2a41 commit b4dfc9eCopy full SHA for b4dfc9e
NNK_approximate/normc.m
@@ -0,0 +1,6 @@
1
+function x = normc(x)
2
+normalize = @(a) a/norm(a);
3
+for i=1:size(x,2)
4
+ x(:, i) = normalize(x(:,i));
5
+end
6
0 commit comments