linear least regression solving a and b from given data

1 次查看(过去 30 天)
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
and call back function
also polting graph
I wonder why my linear regression point is not on the given function that it soppose to.

采纳的回答

Torsten
Torsten 2022-4-6
b = a0/a1
instead of
b = a0

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by