how remove from a cell array, the words in an other cell array
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Andrei Bobrov
2017년 7월 18일
w2 = word(cellfun(@ischar,word));
out_str1 = strjoin(w2(~ismember(w2,stopwords_cellstring)),' ');
댓글 수: 2
Andrei Bobrov
2017년 7월 18일
w2 = word(cellfun(@ischar,word));
out = w2(~ismember(w2,stopwords_cellstring));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!