how to inisialization number of cluster

2 次查看(过去 30 天)
in matrices (1,1) i have :
Val = [0; 0; 0,5]
thats mean i have 3 cluster value (cluster 1 = 0, cluster2 = 0, cluster 3 = 0.5)
so i use max(val) for take 0.5. but i want change 0.5 to 3 (number of cluster).
how to change it?

回答(1 个)

Bhaskar R
Bhaskar R 2019-12-16
[~, I] = max(Val); % index of max value
Val(I) = 3;

类别

Help CenterFile 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!

Translated by