I have a vector of 1s and 0s that represent when an intermittent data signal is occurring. E.g.:
V = [0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,0];
How do I find the index value of every change from 1 to 0? So for vector V above, the answer would be:
idx = [10,18,28];