Curve fitting of data points
Mostrar comentarios más antiguos
I have a series of repeated data points that i am trying to fit with a skewed curve. In the graph I am showing one set of the data points which are in blue. The black hand drawn line is the kind of fit i want for my data. I want my fit to be a curve like the one drawn, not a combination of two linear functions or a sawtooth. I have included the data points in text files. Thank you.

4 comentarios
Walter Roberson
el 19 de Jul. de 2018
Your fit has multiple y values for the same x. Is that desired, or should it instead be unique y values for each x (just possibly steep) ?
Angela
el 19 de Jul. de 2018
Walter Roberson
el 19 de Jul. de 2018
Editada: Walter Roberson
el 19 de Jul. de 2018
That may be true for the input data, but the black line you show us as the desired fit distinctly wobbles back and forth on the x axis, and since that is presented as your desired outcome, the implication could be that you want the output function to have multiple y values for some of the x.
Anyhow... so if a sharp corner is not desired, then what turn radius should be used?
Do you have a model for what you want the function to be like?
Angela
el 19 de Jul. de 2018
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 19 de Jul. de 2018
0 votos
Have you considered smoothing splines? https://www.mathworks.com/help/curvefit/smoothing-splines.html
1 comentario
Angela
el 19 de Jul. de 2018
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
