I asked this before but it seems a bit tricky!
I have a cell array (attached) of the structure 1 x 2 then 1 x 8. This hold data for 2 years and the 8 arrays of the 1 x 8 array hold data in various formats.
However, the data has come with duplicates like this:
'2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '90''2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '90''2000-01-10 2:00' 'HCM' '268' '14' '210' '645' '3' '12''2000-01-10 2:00' 'HCM' '268' '14' '210' '645' '3' '12''2000-01-10 3:00' 'HCM' '268' '02' '230' '345' '2' '40''2000-01-10 3:00' 'HCM' '268' '02' '230' '345' '2' '40'
Where each column shown above actually represents a XXXX x 1 cell array (cannot remember the row count)
As chronological order is very important, I would like to remove corresponding duplicate rows (based on the first time array, from each array without changing the order to get something like this:
'2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '90''2000-01-10 2:00' 'HCM' '268' '14' '210' '645' '3' '12''2000-01-10 3:00' 'HCM' '268' '02' '230' '345' '2' '40'
Big help if you can help me. I have tried many too many options!
Best Answer