# Plot Border of Clusterred Data

조회 수: 5 (최근 30일)
edward kabanyas 2019년 11월 18일
댓글: edward kabanyas 2019년 11월 21일
I want to cluster the data in the attached file to find at which location certain time (period) di dominant. Thus, I want to plot the border of clusterring data in my contour plot.
I find the interesting example in this mathworks example:
% border clustering
xy1 = [randn(50,1) randn(50,1)];
xy2 = [randn(50,1)+5 randn(50,1)];
xy3 = [randn(50,1) randn(50,1)+5];
[idx,c] = kmeans([xy1; xy2; xy3],3)
figure
hold on
plot(xy1(:,1),xy1(:,2),'ro')
plot(xy2(:,1),xy2(:,2),'go')
plot(xy3(:,1),xy3(:,2),'bo')
voronoi(c(:,1),c(:,2))
However, I don't know how to implement such code to my data. Some help is really appreciated.
EK
##### 댓글 수: 6이전 댓글 4개 표시이전 댓글 4개 숨기기
Image Analyst 2019년 11월 21일
Why not use scatter3() where each z value range is given a different color?
And again, I don't know what "di dominant" means? I've never even heard of the adjective "di".
edward kabanyas 2019년 11월 21일
>And again, I don't know what "di dominant" means?
Sorry, this is typo, I mean "is dominant"...if we use scatter3(), can we plot the border of the area coverred by z value range on spatial map?

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

### 카테고리

Help CenterFile Exchange에서 Hierarchical Clustering에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by