diff --git a/Stanford_Machine_Learning/Week2/Assignment/Matlab/featureNormalize.m b/Stanford_Machine_Learning/Week2/Assignment/Matlab/featureNormalize.m index bb5d0729..68a78874 100644 --- a/Stanford_Machine_Learning/Week2/Assignment/Matlab/featureNormalize.m +++ b/Stanford_Machine_Learning/Week2/Assignment/Matlab/featureNormalize.m @@ -27,10 +27,9 @@ % - - - - +mu=mean(X); +sigma=std(X); +X_norm=(X-mu)./sigma;