Help!!! Least square fitting
8 次查看(过去 30 天)
显示 更早的评论
I have a set of values P and D :
P = [175.2582 150.9053 103.9622 69.9965 48.6696]
D = [0 31.3300 61.3200 91.3800 121.4000]
and i want to use the following equation to find a and b
D = a * (P- b)^2
but I have to satisfy the following conditions
if P <= b then D=a * (P- b)^2
else D=0
How can i do this and fit the data?
1 个评论
Walter Roberson
2021-3-20
How does this differ from https://www.mathworks.com/matlabcentral/answers/777947-solving-a-quadratic-equation?s_tid=srchtitle ?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
