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

1 次查看(过去 30 天)
Hello,
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.)
  2 个评论
John D'Errico
John D'Errico 2022-6-19
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Smoothing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by