how can i fit with using nonlinear regression?

3 views (last 30 days)
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?

Accepted Answer

Star Strider
Star Strider on 30 Nov 2021
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 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!