Borrar filtros
Borrar filtros

clustering method from txt(notepad) data..pls help me

2 visualizaciones (últimos 30 días)
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 comentarios
mohd norhafifi zainudin
mohd norhafifi zainudin el 5 de Abr. de 2013
`like this a have to do the analysis by using matlab software.I get the data from the experiment and save to notepad(txt).i has to make a clustering by using matlab software and using the data from notepad to make a clustering..i will give example of my data.
0.00000000
-0.00030518
-0.00061035
-0.00091553
-0.00030518
0.00000000
0.00030518
-0.00030518
-0.00061035
-0.00030518
-0.00030518
-0.00030518
0.00000000
0.00030518
0.00030518
0.00030518
0.00000000
0.00000000
-0.00030518
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
-0.00030518
-0.00030518
-0.00061035
-0.00030518
-0.00030518
-0.00030518
-0.00030518
0.00000000
0.00000000
0.00000000
0.00030518
0.00000000
0.00000000
0.00030518
0.00061035
0.00000000
0.00000000
-0.00030518
-0.00030518
-0.00030518
0.00000000
0.00030518
0.00000000
0.00000000
0.00030518
0.00000000
-0.00030518
-0.00061035
-0.00061035
-0.00030518
-0.00030518
0.00000000
0.00000000
0.00000000
-0.00061035
-0.00091553
-0.00091553
-0.00061035
-0.00061035
Cedric
Cedric el 5 de Abr. de 2013
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.

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 5 de Abr. de 2013
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?

Más respuestas (1)

Image Analyst
Image Analyst el 5 de Abr. de 2013
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.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by