Easy way to change the scale of one curve to fit another curve

I have one curve serve as reference. And then I run simulation to generate another simulated curve. The simulated curve may of different scale compared to the reference, for instance, it maybe "taller", or "fatter", but the basic shape of the two curves are similar. I want to scale (by this I mean "squeeze" or "stretch") the simulated curve, such that the simulated curve fits best to the refernece curve.
Both curves are regular bell-like curves with regular peaks and valleys.

2 comentarios

This sounds similar to dynamic time warping, dtw()
Thanks for pointing that out!
It is very close, but not exactly what I need. I will need to stretch the whole simulated curve by the same factor, while dtw() stretches partial curves.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Jun. de 2019

Comentada:

el 21 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by