Least squares equation fit help
Show older comments
Hi I'm trying to find the solutions (a,b,c,d) to the following equation:
y=a+b(x)+c(ln(x-d))
where x and y are known vectors.
I have been trying to use the curve fitting toolbox and writing it as a custom equation but keep getting the following error: "Complex value computed by model function, fitting cannot continue."
Any help would be great, I have a fair bit of Matlab experience but am new to the curve fitting toolbox.
Tim
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!