How to Find Number of Group of Scattered Data?

조회 수: 1 (최근 30일)
Changwoo Lee
Changwoo Lee 2021년 11월 3일
편집: Changwoo Lee 2021년 11월 3일
I have scatterd data as shown in below:
I want to find the number of group (the resultant total number of groups may be three in this case).
And then, I want to find the centriod of each group.
Is there a proper matlab command? How to realize it?
I eagerly await your reply. Thank you very much.
  댓글 수: 2
Rik
Rik 2021년 11월 3일
Can you attach your data? It seems like a function like knnsearch will do the trick.
Changwoo Lee
Changwoo Lee 2021년 11월 3일
편집: Changwoo Lee 2021년 11월 3일
First of all, Thank you for your reply.
The data can be generated using the following code.
x=[rand(10,1); (10+2*rand(20,1)); (20+4*rand(30,1))];
y=rand(60,1);
In this problem, we don't how many number of group. Thus, we should find the number of group using the algorithm.
For example, it may be realized by using information on the centriod of group and user-defined-specific ellipse.

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2021년 11월 3일
Read about kmeans, clusterdata.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by