Find coefficient for the best second-order polynomial that fits my data, using least-square fitting

2 views (last 30 days)
I want to fit my data x= [1,06e-06 1,33e-05 6,23e-05 0,00017 0,00047 0,00100] with a generic second order polynomial y= a*x^2 + b*x + c, using least-square fitting.
I need the coefficient "a" of the polynomial that allows me to have the best fitting with my data.

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 16 Jan 2019
Try:
help polyfit
HTH

More Answers (0)

Categories

Find more on Polynomials 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!