I have a cell array, where each cell is a string of the following form:
A{1} = hello, world, the, hello, the, how, are, you, world
I would like to retain only the unique words, to give me a new char array that will go into an output cell array:
B{1} = hello, world, the, how, are, you
unique() does not seem to cut it. Is there an easy way of doing this?
unique? If used in the proper way it should do exactly what you need.