필터 지우기
필터 지우기

how to inisialization number of cluster

조회 수: 2 (최근 30일)
Steven Pranata
Steven Pranata 2019년 12월 16일
답변: Bhaskar R 2019년 12월 16일
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