how can i fit with using nonlinear regression?
1 view (last 30 days)
alp onur karacay on 30 Nov 2021
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 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.