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!