Polynomial fitting generates erratic plot

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

dpb
dpb 2016년 5월 5일
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...

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

2016년 5월 5일

댓글:

dpb
2016년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by