error message when trying to fit model parameters to data-set

2 views (last 30 days)
Can you please tell me what to do when this message appears:
Fit could not be computed due to error:
Complex value computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
I already tightened the parameter boundaries to the max, where I still expect reliable data. Could there be another reason why I can not get the fitting done? Granted, my function is a exotic one, derived from an equivalent circuit model.
Thank you for your help
  2 Comments
Star Strider
Star Strider on 24 Aug 2012
Are you fitting real (time-domain) or complex (frequency-domain) data? Are you using nlinfit, lsqcurvefit, or the Curve Fitting Toolbox?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!