MATLAB: Find multiple elements in cell

cellfindmultiple

hello i have a cell contain multiple numbers like A= {[1,2];[1,2];[2,3]}; i want to find [1,2] .

Best Answer

Try this:
A = {[1,2]; [4,5]; [21,3]}
[ia, ib] = ismember(cell2mat(A), [1, 2])
row = find(all(ia, 2))