Don't have Telegram yet? Try it now!
http://georgepavlides.info/k-means-cost-function-minimisation-matlab-octave-approach/
K-means as a cost function minimisation - a MATLAB/Octave approach