I am working with ultrasound signals that are affected by a temperature change, I would like to use EDR/DTW (or whatever is most appropriate) to re-align the temperature shifted signal with a baseline signal, so that I can use subtraction methods to compared changes in amplitude between the two signals.
The problem with EDR/DTW is that both signals are stretched, I would like to only stretch the second signal (120°C), so that when I apply this transform to other signals the baseline signal (20°C) is always unaffected.
You can see the stretching of both signals in the following example code (data attached):
M1 = readmatrix("example_data.csv");
[dist,ix,iy] =edr(S0_20C,S0_120C,0.001);
plot(1:numel(ix),S0_20C(ix),'.-', ...
1:numel(iy),S0_120C(iy),'.-');
legend('Original 20C', 'EDR 20C','EDR 120C')
Any suggestions are appreciated.