linear least regression solving a and b from given data
2 ビュー (過去 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!