I created some duplicates to demonstrate this code:
A = {'155809966'
'6K0809966B'
'6N0815478B41'
'6N0815478B41'
'6U0817940'
'7H0817940A'
'1H0819055B01C'
'1H0819055B01C'
'1H0819055C01C'
'1H0819056'
'7M0819056'
'4H1819429A'};
[Bu,~,ix] = unique(A);
Tally = accumarray(ix,1);
Out = Bu(Tally == 1)
producing (here):
Out =
8×1 cell array
{'155809966' }
{'1H0819055C01C'}
{'1H0819056' }
{'4H1819429A' }
{'6K0809966B' }
{'6U0817940' }
{'7H0817940A' }
{'7M0819056' }
.
Best Answer