フィルターのクリア

make a cluster from scatter point

1 回表示 (過去 30 日間)
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020 年 10 月 17 日
コメント済み: Fatemeh Shomal Zadeh 2020 年 10 月 18 日
Hi
I have attached my scatter poit figure and I want to make a 2 or 3 clusters from them.
This is my code;
for i = 1:size(MeanEchos,1);
for j = 1:size(MeanEchos,2);
scatter(blob_area{2,j},MeanEchos{2,j},'x');
set(gca,'xscale','log');
grid on;
xlabel('Blob Area');
ylabel('Mean Echo Intensity');
xlim([0 10^5]);
ylim([0 5])
end
end
I would be greateful if anyone would be able to help me.
Thanks in advance

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 17 日
If you have statistical and machine learning toolbox, then try kmeans(): https://www.mathworks.com/help/releases/R2020b/stats/kmeans.html
  7 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 10 月 18 日
From the images, it seems that the results are correct. It clearly shows two clusters. I am glad to be of help!
Fatemeh Shomal Zadeh
Fatemeh Shomal Zadeh 2020 年 10 月 18 日
Great. Thanks a lot!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by