mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Added another matlab example
This commit is contained in:
6
samples/Matlab/normalize.m
Normal file
6
samples/Matlab/normalize.m
Normal 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
|
||||
Reference in New Issue
Block a user