linear least regression solving a and b from given data
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Phuri Nittiwat
il 6 Apr 2022
Commentato: Phuri Nittiwat
il 12 Apr 2022
![](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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Linear and Nonlinear Regression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!