If I have a cell array
CELLS = {'AB','AB','AB','BC','BC','CD','CD','CD','DF','FG'}
How do I find the indices of the locations at which the elements change?
in this example I'm looking for an output like:
CHANGES =
4
6
9
10