I have some data labelled x_v[n] and a matched template which I obtained by using cross-correlation I am trying to locate the starting and ending point of the \'blinks\' (th