The problem of initial parameters in Lsqcurvefit
Show older comments
I have a problem in Lsqcurvefit.
I am optimizing Boucwen Model with lsqcurvefit.
But when it runs with the initial parameters of below, it says
"Matrix dimensions must agree. Error in lsqcurvefit/objective (line 265)
F = F - YDATA; "
a = [1,1,1,1,1,1];
But if i use this initial parametes of below by looking for manually, it works well .
a = [12,5966,29,147,538,245];
Since I have 300 datas, I can't find each initial parameters.
So I read two ways of below such as exitflag, output and optimooptions.
I dont understand well which things are good for mine, So could you give me the recommendations for solving this problem?
Thank you so much.
Accepted Answer
More Answers (0)
Categories
Find more on Optimization 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!