help to align curves from different sample
1 次查看(过去 30 天)
显示 更早的评论
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.
4 个评论
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!