BEST FIT OF SCATTERED DATA

조회 수: 8 (최근 30일)
Giuseppe Degan Di Dieco
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.

채택된 답변

KSSV
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
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco 2021년 6월 30일
Dear KSSV,
thanks for your promt reply, much appreciated.
I'll test it, and let you know the results.
Best.
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco 2021년 7월 21일
Dear KSSV,
thanks for your help.
It was useful, and I used polynomials as fitting functions.
I wonder if novel methods exist to divided data in clusters, and then used and combined different fitting functions along the data pattern distribution.
Best.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by