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

4 visualizaciones (últimos 30 días)
Stephanie D
Stephanie D el 16 de Sept. de 2012
Comentada: Nanje Gowda Appanna el 22 de Jun. de 2022
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 comentario
Star Strider
Star Strider el 17 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Stephanie D
Stephanie D el 18 de Sept. de 2012
Editada: Stephanie D el 18 de Sept. de 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 comentario
Nanje Gowda Appanna
Nanje Gowda Appanna el 22 de Jun. de 2022
Hi
I am facing same error.
Could you please help me how to resolve the issue

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by