find least squares parameters

Hi,
please, how can i find the least squares parameters of the straight that best fits is (0,3),(2,1),(3,-1)and(5,-2) in matlab

Answers (1)

John D'Errico
John D'Errico on 27 Jun 2020
Did you try polyfit? If not, then do so.

Categories

Find more on Curve Fitting Toolbox in Help Center and File Exchange

Tags

Asked:

on 26 Jun 2020

Answered:

on 27 Jun 2020

Community Treasure Hunt

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

Start Hunting!