Added another matlab example

This commit is contained in:
Lukas Elmer
2013-10-28 18:02:15 +01:00
parent ce6a8aa671
commit 27566d93e2

View File

@@ -0,0 +1,6 @@
function [ d, d_mean, d_std ] = normalize( d )
d_mean = mean(d);
d = d - repmat(d_mean, size(d,1), 1);
d_std = std(d);
d = d./ repmat(d_std, size(d,1), 1);
end