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!