BEST FIT OF SCATTERED DATA
10 views (last 30 days)
Show older comments
Giuseppe Degan Di Dieco
on 29 Jun 2021
Commented: Giuseppe Degan Di Dieco
on 21 Jul 2021
Hello Beautiful,
I came up with the attached plot of scattered data, and because I'm not so good at fitting techiniques, and less in Matlab,
I wonder if someone can give me some tips on how to best fit the data.
Thanks in advance to everyone, and take care.

0 Comments
Accepted Answer
KSSV
on 29 Jun 2021
Let (x,y) be your points.
p = polyfit(x,y,1) ; % change the degree
yi = polyval(p,x) ;
plot(x,y,'.r',x,yi,'b')
More Answers (0)
See Also
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!