merging columns in cellarray
Ältere Kommentare anzeigen
Hi everybody! I have a question: I have a cell array with 3 columns, in the first the word occurance, in the second the frequency of this word in the text 1, in the third the occurance of the word in text 2.
for example:
- [] 0,007 0
- [] 0 0,002
- 'a' 0,015 0
- 'a' 0 0,016
- 'aa' 0 4,77e-06
- 'abdomen' 1,90e-05 0
- 'abdomen' 0 1,43e-05
- 'aberrant' 6,33e-05 0
- 'aberrant' 0 4,77e-05
What I would get is:
- [] 0,007 0,002
- 'a' 0,015 0,016
- 'aa' 0 4,77e-06
- 'abdomen' 1,90e-05 1,43e-05
- 'aberrant' 6,33e-05 4,77e-05
So I want to delete duplicates and to merge the two probabilities.. any suggestions??
Thank you very much!
2 Kommentare
Walter Roberson
am 30 Mai 2012
how is the new word occurrence to be calculated ?
ilaria
am 30 Mai 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Cell Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!