Skip to content

Commit b4dfc9e

Browse files
committed
adding normc function
1 parent 33f2a41 commit b4dfc9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NNK_approximate/normc.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
end

0 commit comments

Comments
 (0)