How to do it?
显示 更早的评论
Hello all,
Is there any tutorial to learn implementing a flow chart in MATLAB? By flow chart, I mean something like this:
Let´s assume I have a data set, say 24 data points , each of which 2 dimensions. Id like to cluster them in an un pre-defined number of classes. Here is the instruction:
1.FIRST: Find the center(mean) point of the whole dataset. Split this point into 2 center points. Assign each datapoint to the nearest center. 2.NOW: for each center point, repeat point 1 until none of the data points changes its membership. I think it is working in a way similar to kmeans algorithm, but the number of the classes is not defined in advance.
thank you!
回答(1 个)
Image Analyst
2014-11-30
1 个投票
Try these links on machine learning:
Look at the Statistics and Machine Learning section here:
especially the section on unsupervised learning.
2 个评论
Negar
2014-11-30
Image Analyst
2014-11-30
I don't know what the code does exactly but it runs without any errors at all:
c = [3;2.25]; % the center point of the whole dataset
k = 1 ;
eps = 1e-3;
while k<3
%split the centroid in 2
c(:,k+1) = c(:,k) + eps; % the first one
d(:,k+1) = c(:,k) - eps; % this works - nothing to fix.
k = k+1;
end
c
d
But you should not use eps as the name of a variable since it's the name of a built in function.
类别
在 帮助中心 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!