lsqcurvefit() moved from Matlab to toolbox?
1 view (last 30 days)
Star Strider on 1 Jun 2023
The lsqucurvefit function has always been in the Optimization Toolbox for as long as I’ve been using MATLAB. You may be referring to fminsearch that is both a basic MATLAB function and in the Optimization Toolbox. You can certainly do nonlinear fitting with it.
John D'Errico on 1 Jun 2023
You definitely mis-remember this. lsqcurvefit has always been in the optimization toolbox. At least as long as I can recall on this, and my MATLAB memory goes back a long way.
Perhaps in an older release you had, perhaps from an employer, in a galaxy far far away, you may have had that toolbox so you just assumed it was part of MATLAB. But lsqcurvefit has always been where it it now, in the optimization toolbox.
Or, perhaps you are thinking of lsqnonneg. I'm pretty sure that lives in MATLAB proper, not provided with the optimization toolbox. (Although lsqnonneg is listed as part of the optimization toolbox.)