cellfun
関数の関数を使用strfind
して、文字列の別のセル配列内の文字列のセル配列内の各文字列のインデックスを見つけて、それらを除外したいと考えています。
strings = {'aaa','bbb','ccc','ddd','eee','fff','ggg','hhh','iii','jjj'};
excludedStrings = {'b','g','h'};
idx = cellfun('strfind',strings,excludedStrings);
idx = cell2mat = idx;
idx = reshap(idx,numel(idx),1);
idx = unique(idx);
strings(cell2mat(idx)) = [];
コール ラインにエラーがありますcellfun
。これを修正するにはどうすればよいですか?