BEST FIT OF SCATTERED DATA
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
KSSV
2021-6-29
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')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!