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