is matlab 'fit' function changing behavior ?
27 ビュー (過去 30 日間)
I was working with curve fitting problem and use fit function as follows :
Now when I am running the code after 2 days, an error pops us saying there are more inputs than expected and correct syntax should be
I see that the second fit function was introduced in r2022b. does that mean the first fit function from curve fitting toolbox is getting replaced with something else ? If yes, what alternatives can I use in r2022b ?
Hiro Yoshino 2022 年 11 月 2 日
There are actually many "fit" functions avaiable within MATLAB.
MATLAB determines which "fit" function to use based on the types and the combinations of the input arguments.
For example, the fit provided by Curve Fitting Toolbox is called this way:
whereas, the one provided by Predictive Maintenance Toolbox is:
mdl = linearDegradationModel;
I suppose the function that is available most among the toolboxes is "plot". You can find many plot functions.
その他の回答 (1 件)
Xingzheng Pan 2022 年 12 月 7 日
Hey all. I still get trouble even use the demo case above. The Matlab still call the fit function in ML toolbox, any ideas to deactivate? I really need the fit function in curve fitting toolbox.