suppose that we have a wave which has some peaks in some indexes like 2,12,25,... and otherwise zero.
I want to extract the time lag or lags between peaks of a signal. could anyone help me ?
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It only takes a minute to sign up.
Sign up to join this communitysuppose that we have a wave which has some peaks in some indexes like 2,12,25,... and otherwise zero.
I want to extract the time lag or lags between peaks of a signal. could anyone help me ?
The time lag is equal to the index difference times the sample period. The sample period is: $$ T_s = \frac{1}{f_s} = \frac{1}{16000} = 62.5\mu s $$ Thus, the time lag from the first peak to the second is $(12 - 2) * T_s = 625\mu s$. The time lag from the second peak to the third is $(25 - 12) * T_s = 812.5\mu s$.