I have several excel worksheets with over 6000 rows of data in excel that go across multiple columns. In column 1 I have the number corresponding to an image (goes up sequentially) and in column 2 I have the parent cell number that goes up to some maximum number which varies image to image and can be in duplicates. I need to extract the number of unique values in column 2 per image but I'm not sure how to script it in matlab.
Matrix Example to illustrate problem:
1 21 21 31 51 232 13 13 23 23 24 34 204 134 174 314 17etc.
and I need an output that resembles
1 42 13 24 5etc.
Best Answer