I run kmeans in matlab on a 400x1000 matrix and for some reason, whenever I run the algorithm, I get different results. The following is sample code:
[idx, ~, ~, ~] = kmeans(factor_matrix, 10, 'dist','sqeuclidean','replicates',20);
For some reason, every time I run this code, I get different results? any ideas?
I use it to identify problems with multiple collinearity.
Thanks for the help!
matlab k-means feature-selection
user1129988
source share