I want to the do the following
Input: (cell array)
ab
ac
ad
aab
ac
aac
aab
ac
I want the output to map to unique numeric values, like
1
2
3
4
2
5
4
2
Is there an easy way to do this? The input is about 250,000 and of variable length. I just want to map the cells with the same content to the same number.
Thanks.