find least squares parameters

1 view (last 30 days)
mostafa hager
mostafa hager on 26 Jun 2020
Answered: John D'Errico on 27 Jun 2020
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 Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!