What method to use to curve fit these data points mentioned below?

1 view (last 30 days)
I was working on some data and I want to fir my data similar to that of the "yellow line". The smoothing spline with "0.99" roughness is a little off track. Any insight on this one will be very helpful.
The figure is given as "fig" and data as "data1".
(in the data, the y-axis seems to have NaN values but while plotting thats not the case.)
John D'Errico
John D'Errico on 19 Jun 2022
What are you hoping to appoximate? The blue data, or the black points? If you want to appoximate the black data, then why have you even plotted the blue curve on top? Perhaps the blue curve is what the smoothing spline produces?
I might guess the black data is what you want to fit from the shape drawn in yellow. But since you seem to have a large amount of data at the peak, I fail to see why it is you expect to see that yellow curve at all.
And of course, we don't actually have the data, but only a picture of it. So it is difficult to explain much about what is happening, or should happen. If you do decide to attach some data, please do so attached to a comment, or by editting your question.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!