Cross-Correlation to determine lag
Ältere Kommentare anzeigen
I have to vectors that contain the time points a signal was recorded (in seconds). The first vector contains the time points a playback was triggered (around every 12s). The other vector contains the time points I received an answer to this playback. I'm trying to calculate the lag of this answer relative to the onset of this playback. I was trying with the xcorr function, but can't make much sense of it. Any advice how to go about this? And is it problematic that the second vector is shorter than the first (I didn't always receive an answer to the playback)?
6 Kommentare
Image Analyst
am 7 Jul. 2016
Of course it would help people to help you if you had attached your two signals.
Zenid
am 7 Jul. 2016
José-Luis
am 7 Jul. 2016
I am afraid those signals do not help to solve your question unless they have a timestamp.
Zenid
am 7 Jul. 2016
José-Luis
am 7 Jul. 2016
So in some cases the second signal comes before the first signal?
Zenid
am 7 Jul. 2016
Antworten (0)
Kategorien
Mehr zu Correlation and Convolution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!