Problems with kmeans clustering
古いコメントを表示
OI have used the following code to segment the attached image. But each iteration on the same image shows different result. How can i solve this by using rng('default'); ?
2 件のコメント
Adam
2017 年 3 月 31 日
You should just need to explicitly set the seed (either to 'default' I guess or to any seed of your choice) before each call to kmeans if you want the same result each time.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で k-Means and k-Medoids Clustering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!