how to inisialization number of cluster

1 visualización (últimos 30 días)
Steven Pranata
Steven Pranata el 16 de Dic. de 2019
Respondida: Bhaskar R el 16 de Dic. de 2019
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?

Respuestas (1)

Bhaskar R
Bhaskar R el 16 de Dic. de 2019
[~, I] = max(Val); % index of max value
Val(I) = 3;

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by