How to determine the delay between two signals representing a single transition

9 views (last 30 days)
I am trying to use Matlab for determining the delay between two signals which represent transitions of two different lines from one voltage level to another. The available datasets contain samples acquired just before the beggining of the first transition and a bit after the second signal transition as illustrated in the below figure. It is also unknown which of the two signals transitioned first so it also has to be determined.
I tried cross-correlation (not autocorrelation as I initially wrote) and some other maybe less traditional approaches like dividing or subtracting the two signals and determining the delay as a measure of the maximum of the resulting signal. However, I was unable to identify an approach that works with all test inputs due to differences in signal shapes as can be seen in the figure below: Some have a more rapid transition times than others and also different transitory effects.
Any suggestion on how the delay can be determined under these circumstances is very welcomed.
Thanks in advance!

Accepted Answer

Star Strider
Star Strider on 20 Jun 2019
There are several possibilities. One of course is the finddelay function and its friends.
Others are findchangepts and ischange. With these, you can find the transition points (regions), then do the appropriate calculations.
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!