5 lines
97 B
Mathematica
5 lines
97 B
Mathematica
|
function x = normalize(x, mu, sigma)
|
||
|
x=bsxfun(@minus,x,mu);
|
||
|
x=bsxfun(@rdivide,x,sigma);
|
||
|
end
|