How to superimpose curves ?

6 visualizaciones (últimos 30 días)
Leonhard Messerer
Leonhard Messerer el 8 de Ag. de 2022
Editada: Gowtham el 27 de Sept. de 2023
Hello,
I want to superimpose curves or "overlay" them.
I have timeseries data with a speed profile from an experiment which was repeated several times and at different speeds. (See picture)
Now I want to piece the curves together to one 'smooth' curve or superimpose them in parts. So that the single segments fit together and i get a curve shape like the one in the second picture. Is there a built in Matlab function to do so, or do you have any tips how to proceed?
Thank you,
Leo

Respuestas (1)

Gowtham
Gowtham el 8 de Sept. de 2023
Editada: Gowtham el 27 de Sept. de 2023
Hello Leonhard,
I understand that you want to smoothen the given curve.
Regarding your concern about superimposing the curves, it is important to note that due to the continuous nature of the data, the expected output may not be achieved.
Since the data is continuous, a 'moving average filter' can be used. This can be done using the smooth function from the Curve Fitting Toolbox.
Feel free to refer to the following documentation for further understanding:
  1. https://www.mathworks.com/help/curvefit/smooth.html
  2. https://www.mathworks.com/help/curvefit/smoothing.html
Hope it helps!

Categorías

Más información sobre Curve Fitting Toolbox en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by