MATLAB: How to match different cell arrays of different sizes with one cell array of another different size

cell arrays

I have different cell arrays with different sizes 1×3 and 1×2:
line38 = {'38-1', '38-2', '38-3'};
line60 = {'60-1', '60-2', '60-3'};
line48 = {'48-1', '48-2'};
line52 = {'52-1', '52-2'};
line61 = {'61-1', '61-2', '61-3'};
line76 = {'76-1', '76-2', '76-3'};
line66 = {'66-1', '66-2'};
line70 = {'70-1', '70-2'};
line26 = {'26-1', '26-2', '26-3'};
line94 = {'94-1', '94-2', '94-3'};
line89 = {'89-1', '89-2'};
line90 = {'90-1', '90-2'};
I need to match these cells with a cell array of 1236×2

Best Answer

Consider your 1236x2 cell array is named a. Use ismember.
ismember(a,line38)
ismember(a,line60)
and so on.