If you have the following array
a = [1 1 3 4 4 1 1 4 4 4];
I want to get this result
b = [1 3 4 1 4];
c = [2 1 2 2 3];
b is an array with unique adjacent values from a,
c is an array that counts the number of repetition
Is there a way to do this without loops?