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 中查找有关 Cluster Analysis and Anomaly Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!