a=cell(1,3)a{2}= [2 4 5]for i=1:3 if numel(a{i})==3 b=cellfun(@(q) q==a(i),a,'un',1) endend
I tried to find index of the matrix which have a certain number of elements in a cell.
cellmatrix
a=cell(1,3)a{2}= [2 4 5]for i=1:3 if numel(a{i})==3 b=cellfun(@(q) q==a(i),a,'un',1) endend
Best Answer