Trying to do a curve fitting but having trouble getting it to work.

2 views (last 30 days)
  3 Comments
Dillon Romans
Dillon Romans on 18 Feb 2021
Its an assignment that restricts us from using that function. Do you happen to know why I keep getting the "local minimum possible" error?
Matt J
Matt J on 18 Feb 2021
If it were an error, lsqcurvefit would tell you so, for example:
>> lsqcurvefit(1)
Error using lsqcurvefit (line 171)
The input to LSQCURVEFIT should be either a structure with valid fields or consist of at least four arguments.

Sign in to comment.

Answers (1)

Matt J
Matt J on 18 Feb 2021
Edited: Matt J on 18 Feb 2021
Do you happen to know why I keep getting the "local minimum possible"
Because lsqcurvefit thinks it succeeded in finding a solution (and maybe it did!).

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!