Matlab not recognizing 'fit' function
古いコメントを表示
When I attempt to use the curve fitting toolbox function 'fit', I get the following error: Unrecognized function or variable 'fit'. I have installed the curve fitting toolbox and reinstalled Matlab itself a couple of times, but none of these seem to fix it. It is also a different error to the one generated when the toolbox isn't installed (which is something along the lines of "one of the following toolboxes is necessary to use the 'fit' function) so I know the toolbox is installed.
The only think I can think is that maybe there are multiple toolboxes with a fit function and it is getting confused, but then I would expect an error related to the actual syntax of a different fit function. If there isn't a way to resolve this error, is there at least a way to force it to reference the toolbox function?
Here is an image of the auto-generated live script from the curve fitting toolbox documentation to show the error.

Let me know if you know what is going on here.
Thanks!
3 件のコメント
Stephen23
2023 年 3 月 10 日
"I have installed the curve fitting toolbox and reinstalled Matlab itself a couple of times"
Check if you have a valid license for the curve fitting toolbox:
Clayton
2023 年 3 月 10 日
licence checkout Curve_Fitting_Toolbox
ver('Curve Fitting Toolbox')
What do you get as answers ?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!