Plot Border of Clusterred Data
Mostra commenti meno recenti
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 Commenti
darova
il 18 Nov 2019
try clusterdata
Image Analyst
il 18 Nov 2019
Modificato: Image Analyst
il 18 Nov 2019
- What do each of the 3 columns represent?
- How many clusters do you think there are? (What is k?)
- Why do you think there are clusters in the first place?
- Do you want clusters in 3-D or in 2-D (over just two of the columns, if so which ones?)
- Exactly what does "certain time (period) di dominant" mean?
data = xlsread('data_test.xls');
plot3(data(:, 1), data(:, 2), data(:, 3), '.', 'MarkerSize', 50);
grid on;

edward kabanyas
il 18 Nov 2019
edward kabanyas
il 20 Nov 2019
Image Analyst
il 21 Nov 2019
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
il 21 Nov 2019
Risposte (0)
Categorie
Scopri di più su Hierarchical Clustering in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!