How can I fit data which is like that it will check directly several possible issue of fitting then in output it will give right fitted curve ?
5 次查看(过去 30 天)
显示 更早的评论
I have X and Y data and want to plot and then want to fit like that it can give result which is having nearest possible fit. As suppose first of all it will check first order polynomial then second order, and in output it have to give the which is good enough fit?
0 个评论
回答(1 个)
Shashank Prasanna
2013-8-23
If you are looking to do this automatically you can use Stepwise regression.
specify the 'polyijk' model spec. The function will choose the best model based on a specified criterion.
2 个评论
Shashank Prasanna
2013-8-23
Did you make an attempt first? There are examples in the link I gave you.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!