I have a 1x234 cell array called tmp from which I want to delete all duplicates. Some elements of tmp can be:
tmp{1, 3} -> 'Ro'
tmp{1, 167}{1, 1} -> 'Ro'
tmp{1, 167}{1, 2} -> 'CvF'
Of the first two, I'd like to keep just tmp{1, 167}{1, 1} -> 'Ro'.
Also, I would like to turn entries that contain cells-within-cells, such as:
tmp{1, 167}{1, 1} -> 'Ro'
tmp{1, 167}{1, 2} -> 'CvF'
Into:
tmp{1, 167}-> 'Ro'
tmp{1, 168}-> 'CvF'
How can I achieve these two goals?
unique).