how remove from a cell array, the words in an other cell array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
elisa ewin
am 18 Jul. 2017
Kommentiert: Andrei Bobrov
am 18 Jul. 2017
Hi, I want to remove from the cell array word (attached), the words in an other cell array word_bis(attached). I have tried
out_str1 = strjoin(word(~ismember(word,stopwords_cellstring)),' ')
but it gives me an error:
Error using cell/ismember>cellismemberR2012a (line 193)
Input A of class cell and input B of class cell must be cell arrays of strings, unless one is a string.
Can you help me to solve the problem? thanks
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 18 Jul. 2017
w2 = word(cellfun(@ischar,word));
out_str1 = strjoin(w2(~ismember(w2,stopwords_cellstring)),' ');
2 Kommentare
Andrei Bobrov
am 18 Jul. 2017
w2 = word(cellfun(@ischar,word));
out = w2(~ismember(w2,stopwords_cellstring));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!