For example, if I have a cell with arrays listed inside:
C = {[1,2,3,4], [3,4], [2], [4,5,6], [4,5], [7]}
I want to output:
D = {[1,2,3,4], [4,5,6], [7]}
What is the most efficient way to remove cell elements that are already included/subset in another larger element?
My existing algorithm loops through each element, compares it to each element in the new cell list and updates the new cell list accordingly but it is extremely slow and inefficient (my original cell contains >200 array elements).