Commits

Ning Sun committed c93126b

add missing ';'

  • Participants
  • Parent commits b0a7268

Comments (0)

Files changed (1)

File mlclass-ex7/findClosestCentroids.m

   min_dist = -1;
   for j=1:K
     centroid = centroids(j,:);
-    dist = sum((X(i,:)-centroid).^2)
+    dist = sum((X(i,:)-centroid).^2);
     if ((min_dist==-1) || (dist<min_dist))
       min_dist = dist;
       min_idx = j;