Effacer les filtres
Effacer les filtres

how to inisialization number of cluster

2 vues (au cours des 30 derniers jours)
Steven Pranata
Steven Pranata le 16 Déc 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?

Réponses (1)

Bhaskar R
Bhaskar R le 16 Déc 2019
[~, I] = max(Val); % index of max value
Val(I) = 3;

Community Treasure Hunt

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

Start Hunting!

Translated by