Dear all,
I would like to know if there is a least squares routine in Matlab to scale a template signal to a measured signal in time. Let's say my template is a signal of approx. 1 second, but the corresponding part in the measurement is 1.2 seconds. Now I want to scale my template to be 1.2 seconds long as well. Of course it is possible to simply rescale the template in several steps, cross-correlate with the signal for each step and find the maximum. This however would slow down my programme drastically. Matlab's lsqcurvefit needs two vectors of equal length, and the length of one of the vectors is exactly what I want to vary. Does anyone have an idea? Thanks!