fitting a polynomial function to data points and ploting it
显示 更早的评论
Hi all
I want to fit a quadratic function to a data serie in MATLAB and calculate determination coefficient (R2) as well as quadratic equation.so desired outputs are as below: - scatter plot of data serie i.e. (x, y) - plot of quadratic fitting - quadratic equation - determination coefficient (R2) Could you please guide me. thanks
采纳的回答
更多回答(1 个)
Pawel Blaszczyk
2011-11-7
doc polyfit
doc polyval
I think this two function will be enoguh :)
类别
在 帮助中心 和 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!