Core points of clusters
Show older comments
I need to find the center points of a clusters. I used dbscan for clustering. Now I need to find the core points of these clusters. I used the corepts,but it gives the logical array. How can I find the core points of those clusters or atleast a point contained in those clusters. Anybody please help me.
[idx, corepts] = dbscan(asc,epsilon,minpts);
7 Comments
Have you read the documentation? I don't have the stat toolbox myself so I can't test it, but it looks like the logical array should be easy to use. Have you ever used logical indexing?
sreelekshmi ms
on 25 Feb 2020
Rik
on 25 Feb 2020
Logical indexing works like this:
v=[9 6 3 8];
L=[true false true false];
v(L)
You could use find to convert the logical array into indices, but that step in not necessary:
find(L) %returns [1 3]
sreelekshmi ms
on 25 Feb 2020
Rik
on 25 Feb 2020
v(L)
sreelekshmi ms
on 25 Feb 2020
sreelekshmi ms
on 7 Mar 2020
Accepted Answer
More Answers (0)
Categories
Find more on k-Means and k-Medoids Clustering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
