Determining the number of 'replicates' in 'start' parameter in 'kmeans' function

6 ビュー (過去 30 日間)
Safaa
Safaa 2012 年 10 月 20 日
Hi all:
I need to determine the number of 'replicates' in 'start' parameter in 'kmeans' function. This should be done by using a 3D array. I am calling kmeans function like this :
[cluster cluster_center] = kmeans(double_image, nColors,'distance','sqEuclidean','start',[137;157]);
How can I add the number of replicates to the array?
Regards,
Safaa

採用された回答

Walter Roberson
Walter Roberson 2012 年 10 月 20 日
For example, change [137;157] to repmat([137;157], 1, 1, 7) to get 7 replicates (all with the same starting location though!)

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by