Jan. 19, 2018

The "kmeans.m" is a modification of the kmeans.m file in MATLAB 2010 or MATLAB 2012.  If you use it in a newer version MATLAB, e.g. MATLAB2015, or MATLAB2017, then some errors will occur.

As a remedy, please add the following two files into the stats toolbox:
1. statremovenan.m

2. getargs.m

And then use this "kmeans.m" to replace the kmeans.m in the "stats" toolbox.

Thanks to Wencheng Zhu @THU, who provided the solution mentioned above.


Chunguang