Actually, Im stuck in the very basic part of the algorithm, I don't know how to relate each step to its previous. I have made a try, but it seems my code is not splitting the center point, it just changes its position. Here is my code:
c = [3;2.25]; % the center point of the whole dataset
k = 1 ;
eps = 1e-3;
while k<3
%split the centroid in 2
c(:,k+1) = c(:,k) + eps; % the first one
d(:,k+1) = c(:,k) - eps; % this is not working as expected!! So how to fix it?
k = k+1;
end