I have a data which is looks like
(0 1 0 1 0 0 1 1 1) (1 0 0 0 0 0 1 1 0 ) (1 0 0 0 0 0 1 1 1 )
the real data is 150*180 matrix. I want to use K-means method but don't know how to find optimal k. In some cases symbols "1" are grouped. Could someone please tell me how to find optimal k? Thank you