clustering method from txt(notepad) data..pls help me
1 次查看(过去 30 天)
显示 更早的评论
i just want to know the coding n who to do.if i has data from txt to do the clustering method in matlab.plss help me
3 个评论
Cedric
2013-4-5
So you want to read data available in a text file and store them into some array in MATLAB, and then study to what extent these values are clustered.
See if you are able to write code for reading the text file and get the content in a MATLAB variable/array. Look at the documentation for TEXTREAD for example.
采纳的回答
Jan
2013-4-5
At first you have to import the values. Do you know how to use FOPEN, FSCANF and FCLOSE for importing? If not, read the corresponding help pages.
The the next step "clustering" is not uniquely defined: How do you want to find how many clusters?
更多回答(1 个)
Image Analyst
2013-4-5
You might want to look at using hist() or histc() to take the histogram of the values to see if they naturally fall into groups.
[counts, values] = hist(yourData, numberOfBins);
bar(values, counts); % Plot it.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!