I have 100 points on a two dimentional space. Any point $i$ is defined by the coordinates $(x_i,y_i)$.
Lets say we perform Kmeans clustering over these points and generate clusters. Now, each cluster has a centroid. If now now move one point from cluster $i$ to cluster $j$, then how can I calculate the updated centroids.
In Matlab syntax:
where X(:,1) are x-axis coordinates and X(:,2) are y-axis coordinates.