CFTool fitting fails -- Undefined function or variable 'cfit'

15 Ansichten (letzte 30 Tage)
Stephanie D
Stephanie D am 16 Sep. 2012
I am trying to fit my data using the cftool GUI. I am able to load data, but when I hit fitting and click "new fit" I get this error:
??? Undefined function or variable 'cfit'.
Error in ==> cftool.fit.constructorhelper at 16 h.fit=cfit;
Error in ==> cftool.fit.fit at 16 h = constructorhelper(cftool.fit,varargin{:});
Error in ==> cftoolnewfit at 7 hFit = cftool.fit;
Error in ==> cfswitchyard at 14 [varargout{1:nargout}]=feval(action,varargin{:});
MATLAB Listener error in Fitting.
I just bought this toolbox (I have R2011a) and I was loading my own data, but then I just attempted with an example provided by matlab (load census) and it still does not work.
but it doesn't work for me. Or if someone has a more detailed answer to that solution maybe that would help.
Any suggestions would help.
Stephanie
  1 Kommentar
Star Strider
Star Strider am 17 Sep. 2012
I suggest you look through Download, Installation, Activation & Startup Troubleshooting, or if that doesn't solve your problem, contact MathWorks Support. It seems likely that something went wrong in your installation process, since some of Curve Fitting Toolbox functions show up and others don't.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephanie D
Stephanie D am 18 Sep. 2012
Bearbeitet: Stephanie D am 18 Sep. 2012
So to answer my own question in case this happens to anyone else... it was an issue with my installation/setup.
I was setting the path to only the curvefit/cftoolgiu folder after inital installation, so I think what was going wrong was that I wasn't doing all the subfolders of the curvefit toolbox--
under file-->set path--> click on "add with subfolders" and then select the curvefit folder (in toolbox folder), click okay. It will do all the subfolders in the curvefit folder. I only included the subfolders in the curvefit folder and removed the inner folders of the subfolders (if that makes sense).
Type "ver" into the main Matlab command line, you should see "Curve Fit toolbox" in your list of toolboxes, which wasn't showing up until after I seemed to fix it.
One thing Matlab doesn't seem to instruct on is that after installing a toolbox, you have to "set path..." to that new toolbox folder to "activate" the toolbox after installation (for those out there who are new to Matlab).
Hopefully this helps to anyone with this error in the future
  1 Kommentar
Nanje Gowda Appanna
Nanje Gowda Appanna am 22 Jun. 2022
Hi
I am facing same error.
Could you please help me how to resolve the issue

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by