linear least regression solving a and b from given data
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/954810/image.png)
From the following question in Part 2 I try to find a and b to fit the data above as f(x) = a/((x^2)+b)
from my code as I create linear regression function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/954815/image.png)
and call back function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/954820/image.png)
also polting graph
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/954825/image.png)
I wonder why my linear regression point is not on the given function that it soppose to.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!