cell_A={[1 1 1] [1 2 3;3 2 1] [4 5 6;7 8 9;1 1 1] [2 2 2;3 3 3] [9 9 9]};
cell_B={[1 1 1] [1 2 3;3 2 1] [9 9 9]};
m = length(cell_A) ;
n = length(cell_B) ;
iwant = cell_A ;
for i = 1:m
for j = 1:n
if isequal(cell_A{i},cell_B{j})
iwant{i} = [] ;
end
end
end
% Remove empty cells
idx = cellfun(@isempty,iwant) ;
iwant(idx) = [] ;
celldisp(iwant)