I have a matrix like "A". I want to cluster its data using K-Means method.
A=[45 58 5946 76 5357 65 7140 55 5925 35 4234 51 7446 90 5346 63 6033 50 7853 57 6031 28 7249 49 5376 88 8234 100 19835 35 35];
I used the following command to cluster data.
[Data_clustred, c]= kmeans(A,num_cluster);
by the way, knowing the optimal number of cluster is neccessary to me.
Is there any criteria that determines the optimal numbers of clusters? if so, How can I write its programm.
any help whould be appreciated. Thanks in advance.
Best Answer