MATLAB: Clustering of rows in random manner

cluster

If I have a matrix of 50 rows and 100 columns how clustering of 50 rows can be done in a random manner such that the rows present in that corresponding cluster must have similar values.

Best Answer

Have a look on randsample and randperm.