Not only between two data, how can I use dtw to multiple data?

1 次查看(过去 30 天)
When I use dtw(d1,d2), I get perfectly aligned graph. Actual code:
[d1,i1,i2] = dtw(a1,a2);
a1w = a1(i1); a2w = a2(i2);
After saving a1w and a2w, I'll repeat as many steps as I need to get more warped data.
[d2,i1,i3] = dtw(a1,a3);
a3w = a3(i3);
After getting these, when I plot a1w, a2w, a3w....... they don't align together. Only a1w and a2w would. Unlike the one that you would get after dtw(a1,a3); the graph of a3w won't align correctly with a1w and a2w because a3w is only aligned with a1, but not a2. I tried to use d values to eliminate the offsets, but that doesn't really fix the problem because d values were calculated based on a1, and not a1 and a2, again.
Does anyone know how I can fit and align multiple data in one figure?
Thank you.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by