help to align curves from different sample

hi guys,
I have two curves in the graph, they aren't syncronized because it's impossible to start the data acquisition together, I'd like to do it to compare.
the blue curve is a vector 1x1789. while the orange curve is a vector 73728x1, both has a vector time in axis X.
Someone has any idea in how to do it?
Tks so much.
Capturar.JPG

4 件のコメント

Akira Agata
Akira Agata 2019 年 5 月 20 日
One possible solution will be a combination of retime and alignsignals functions. If possible, please upload your data so that people here can try their solutions!
Taylor Stump
Taylor Stump 2021 年 3 月 29 日
Has anyone found a solution to this by using retime and alignsignals? I am doing the same plot manipulation that Rafael is! Thank you
Adam Danz
Adam Danz 2021 年 3 月 29 日
For the data shown in the picture I would find the index of the first peak for each curve and compute their difference in x-values (lag) which results in the amount that one of the curves need shifted.
If the two curves are not as synchronized as these data show, I'd do a cross correlation to find the lag.
Rafael Cabral
Rafael Cabral 2021 年 3 月 29 日
I fixed the issue mentioned with the same procedures said by Adam Danz finding the first peak.

サインインしてコメントする。

回答 (0 件)

質問済み:

2019 年 5 月 19 日

コメント済み:

2021 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by