Why is Compiler looking for a Curve Fitting Toolbox license when my code doesn't require it?

9 views (last 30 days)
I'm running the Compiler App and it crashes with an error that says:
Error using iLicenseCheck (line 232)
The function SFTOOL requires Curve Fitting Toolbox.
License checkout failed.
License Manager Error -4
Maximum number of users for Curve_Fitting_Toolbox reached.
Now, I know that our site license only allows one instance of the Curve Fitting Toolbox to be used at a time, BUT nowhere in my script do I call SFTOOL. The only fitting I do is with LinearModel.fit and that resides in the Statistics Toolbox. I call it with:
mdl=LinearModel.fit(uppercomp,tendata);
I've looked at the code for LinearModel.fit (using "edit LinearModel.fit") and nowhere in that is SFTOOL called. Can anyone shed light on what's happening?

Accepted Answer

Barry
Barry on 8 Jul 2014
I have my answer! In the Complier app window, I went to Settings and on the 'Toolboxes On Path' tab I found that seven toolboxs were listed as being part of the project (I never set these, however). I unchecked all except for the Stats toolbox (which I needed) and then the compiler ran without trying to look for a license to the Curve Fitting toolbox. Problem solved. My thanks to those that may have expended energy in their grey cells trying to figure this out!

More Answers (0)

Categories

Find more on Startup and Shutdown 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!