eliminating of consecutive columns with the same values, in two separate vectors with same length and dependant on that accordingly for for a third vector with same length.
Example:
x = [1, 2, 3, 2, 4, 5, 6, 3, 7…]
y = [1, 2, 3, 2, 4, 5, 6, 3, 7…]
z = [9, 8, 7, 6, 5, 4, 3, 2, 1…]
x’ = [1, 2, 3, 4, 5, 6, 7…]
y’ = [1, 2, 3, 4, 5, 6, 7…]
z’ = [9, 8, 7, 5, 4, 3, 1…]
is there an efficient way to realize that?