Running kmeans function on matrix with NaN?
I have a 161X911 data matrix of 0,1,2's and then there are some NaN's throughout the matrix. I try and run the built in function kmeans on the data and whenever I have a K(number of clusters) value greater than 5 it returns this

    Warning: Ignoring rows of X with missing data. 
    > In kmeans at 128
    ??? Error using ==> kmeans at 284
    X must have more rows than the number of clusters.
 
Is there a way around this? I guess only 5 rows do not have any NaN's in them.
Running kmeans function on matrix with NaN?
===

I have a 161X911 data matrix of 0,1,2's and then there are some NaN's throughout the matrix. I try and run the built in function kmeans on the data and whenever I have a K(number of clusters) value greater than 5 it returns this

    Warning: Ignoring rows of X with missing data. 
    > In kmeans at 128
    ??? Error using ==> kmeans at 284
    X must have more rows than the number of clusters.
 
Is there a way around this? I guess only 5 rows do not have any NaN's in them.