Machine Learning - Week 8 K-Means Clustering and PCA exp7
K-Means算法相关:findClosestCentroids:functionidx=findClosestCentroids(X,centroids)K=size(centroids,1);idx=zeros(size(X,1),1);%======================YOURCODEHERE======================m=size(X,1);fori=1:mdi