Dear Lokesh...this is nice piece of work and thanks a ton for sharing this with us. I am using this program but getting many centroid points around the moving parts. I want to know are you also getting the same output as me? I am using MATLAB 7.0 r2010 version. You can mail me to my mail id firstname.lastname@example.org. Thanks in advance.
The author of this file failed to mention that the number of row of the data to be fit must equals to the number of partition 'N' in the function corss validation. The users have to change it themselves.