Adding a best fit curve to a scatter plot
1 次查看(过去 30 天)
显示 更早的评论
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
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
2019-5-4
This video below explains this absolutely perfectly.
https://www.youtube.com/watch?v=vh1MLk8rLoI
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!