lsqcurvefit() moved from Matlab to toolbox?
1 回表示 (過去 30 日間)
回答 (2 件)
Star Strider 2023 年 6 月 1 日
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 2023 年 6 月 1 日
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.)