Fit parabola with least squares method

5 views (last 30 days)
miichaela1
miichaela1 on 25 Jun 2017
Answered: KSSV on 25 Jun 2017
I want to build a parabola that approximates in the least square sense the points having coordinates
x=[-2 -1.3 -1 -0.7 -0.4 -0.1]
y=[0.3 0.5 1.5 1.3 0.8 0.1]
How do I do this?

Answers (1)

KSSV
KSSV on 25 Jun 2017
Doc polyfit

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!