BEST FIT OF SCATTERED DATA
3 ビュー (過去 30 日間)
古いコメントを表示
Giuseppe Degan Di Dieco
2021 年 6 月 29 日
コメント済み: Giuseppe Degan Di Dieco
2021 年 7 月 21 日
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668758/image.bmp)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668758/image.bmp)
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')
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!