I want to use a function cellfunfor a function strfindto find the index of each row in an array of row cells in another array of row cells to exclude them from it.
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)) = [];
Error in the call bar cellfun, how can I fix it?
source
share