フィルターのクリア

Kmeans clustering of multidimensional data

31 ビュー (過去 30 日間)
Gábor Dupák
Gábor Dupák 2020 年 11 月 11 日
コメント済み: Gábor Dupák 2021 年 4 月 18 日
Hi'
I am a really beginner Matlab user. I have a big database in Excel (3177x46, first column is settlements' names, and the first row is the variable's names) , in which the rows are different settlement's name and the columns are variables for them . I would like to perform kmeans clustering, I would like to create 10 clusters of the settlements, and I would like to identify which settlement is in which cluster!
Hope someone can help me !

採用された回答

Durganshu
Durganshu 2020 年 11 月 12 日
Let's assume that your data is in DATA matrix and you have imported all the row and columns in a local variable "data". Try this:
[idx, centroid] = kmeans(data, 10);
You can read more in the following documentation:
Hope that helps!
  1 件のコメント
Gábor Dupák
Gábor Dupák 2021 年 4 月 18 日
Thank you, you helped a lot! :)

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by