Code covered by the BSD License  

Highlights from
(simple) Tool for estimating the number of clusters

from (simple) Tool for estimating the number of clusters by Kaijun Wang
12 validity indices, illustrate estimation of the number of clusters

similarity_euclid(data)
function data = similarity_euclid(data)
% data --- observations x dimensions, every collumn is standardized within [0, 1]

   nrow = size(data,1);
   colmin = min(data);
   colmax = max(data);
   dmax = colmax-colmin;
   data = data - repmat(colmin,nrow,1);
   data = data./repmat(dmax,nrow,1);

Contact us at files@mathworks.com