# How to Find Number of Group of Scattered Data?

1 view (last 30 days)
Changwoo Lee on 3 Nov 2021
Edited: Changwoo Lee on 3 Nov 2021
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?
##### 2 CommentsShowHide 1 older comment
Changwoo Lee on 3 Nov 2021
Edited: Changwoo Lee on 3 Nov 2021
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 on 3 Nov 2021

### Categories

Find more on Gaussian Process Regression in Help Center and File Exchange

R2021b

### Community Treasure Hunt

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

Start Hunting!