how can i fit with using nonlinear regression?

2 次查看(过去 30 天)
hello everyone, i have data which is uploded on matlab but i dont have function about this data.I just plot the graph but i dont know how to code to get nonlinear regression conclusion on my graph.I share my question and graph.Please help me thanks a lot.
Question:Find the best fit line in the least squares sense to the training data. Plot the data and the best fit line on the same plot. Compute the correlation coefficient.How much of the original uncertainty is explained by the linear model?

采纳的回答

Star Strider
Star Strider 2021-11-30
There are two options —
First, if it is truly a nonlinear funciton of something, developa mathematical model of the process that created those data and then use it to estimate the parameters. I can help with that if necessary.
Second, if it is only necessary to fit the funciton to something, the easiest approach is to use polyfit and polyval.
.
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by