clustering MATLAB code based on "Discovering Groups" chapter of "Collective Intelligence" book by Toby Segaran Main stript is "clustering.m" - start with this file. Everything else is either custom MATLAB fucntions or data files.