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 cell number that goes up sequentially to a maximum number which varies image to image. I need to extract the maximum number of cells per image but I'm not sure how to script it in matlab.
Matrix Example to illustrate problem:
1 11 21 32 13 13 23 43 5etc.
and I need an output that resembles
1 32 13 5etc.
Best Answer