필터 지우기
필터 지우기

Adding a best fit curve to a scatter plot

조회 수: 3 (최근 30일)
Thishan Dharshana Karandana Gamalathge
댓글: John Doe 2019년 5월 4일
I have a scatter plot consisted of 620 points. I want to set the best fit curve rather than me using the "polyfit" function and then use "polyval". In that case I am the one who changes the degree. I also want to show the equation corresponsing to the best fit curve.
When explaining me the procedure, please use some random numbers to X and Y vectors so I can better understand it.
Thanks,
Thishan
  댓글 수: 2
John D'Errico
John D'Errico 2019년 5월 4일
Sorry, but no. Finding the "best" fit curve with no information provided is essentially a search through infinitely many possible model forms. Without intelligent input from the user, this can be virtually impossible.
John Doe
John Doe 2019년 5월 4일
This video below explains this absolutely perfectly.
https://www.youtube.com/watch?v=vh1MLk8rLoI

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by