linear least regression solving a and b from given data
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Phuri Nittiwat
el 6 de Abr. de 2022
Comentada: Phuri Nittiwat
el 12 de Abr. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!