Clear Filters
Clear Filters

Polynomial fitting generates erratic plot

1 view (last 30 days)
Gavin Seddon
Gavin Seddon on 5 May 2016
Commented: dpb on 5 May 2016
Hello, I have a distance/time curve. The polynomial fit is erratic. A cubic function fits the data well however this does not start at zero as it should but the error is acceptable. Is it better to use fplot to replot the data and calculate the optimum values or use a different approach?
Once the plot has been created I will take its second differential and from this calculate the minimum.
Gavin.
  1 Comment
dpb
dpb on 5 May 2016
Hard to judge w/o even a picture but what about interpolating spline instead? If the data are noisy then smoothing may be appropriate, however. But, we "no nuthnk!" useful in that regard from which to judge from the information given...

Sign in to comment.

Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!