Error when using the curve fitting tool
Afficher commentaires plus anciens
I've been trying to use the curve fitting toolbox to do a pretty simple fit. However, after I create a data set, choose the type of fit, and click apply, I get the error:
Warning: An error occurred while processing a callback. The error was: Attempt to execute SCRIPT fit as a function:
Error in sftoolgui.Fitdev>iCallFit (line 1430) fit( input, output, aFittype, fitOptions );
Error in sftoolgui.Fitdev/fit (line 465) [aFit, aGoodness, anOutput, aWarning, anError, aConvergence] = iCallFit( ...
Error in sftoolgui.EditFitPanel/fitAction (line 175) fit(this.HFitdev);
Error in sftoolgui.EditFitPanel>@(s,e)this.fitAction(e) (line 72) this.createListener( this.JavaPanel, 'fitFit', @(s, e) this.fitAction( e ) );
Error in curvefit.gui.event.EventQueue>iExecute (line 304) func(src, evtData, args{:});
Error in curvefit.gui.event.EventQueue/pumpOne (line 184) iExecute(queueEntry);
Error in curvefit.gui.event.EventQueue/flushOne (line 168) obj.pumpOne();
Error in curvefit.gui.event.EventQueue/createCallback/executeWithQueue (line 144) obj.flushOne();
Error in curvefit.listener>iJavaCallback/evalCallback (line 63) originalCallback(src, evt.JavaEvent); > In curvefit.gui.event.EventQueue>iExecute (line 308) In curvefit.gui.event.EventQueue/pumpOne (line 184) In curvefit.gui.event.EventQueue/flushOne (line 168) In curvefit.gui.event.EventQueue/createCallback/executeWithQueue (line 144) In curvefit.listener>iJavaCallback/evalCallback (line 63)
This happens no matter what data I use or what fit I use. I tried
which -all fit C:\Users\Juan Pablo\Documents\Thesis\Model\fit.m C:\Program Files\MATLAB\R2018b\toolbox\curvefit\sftoolgui\+sftoolgui\Fitdev.m % sftoolgui.Fitdev method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcdesign\@conbase\fit.m % conbase method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcdesign\@conswitch\fit.m % conswitch method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcdesign\@contwostage\fit.m % contwostage method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcmodels\@localmod\fit.m % localmod method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcmodels\@localmulti\fit.m % localmulti method C:\Program Files\MATLAB\R2018b\toolbox\mbc\mbcmodels\@xregmodel\fit.m % xregmodel method C:\Program Files\MATLAB\R2018b\toolbox\stats\stats\@gmdistribution\fit.m % gmdistribution method C:\Program Files\MATLAB\R2018b\toolbox\curvefit\curvefit\fit.p % Shadowed C:\Program Files\MATLAB\R2018b\toolbox\curvefit\curvefit\fit.m % Shadowed >> dbstop if error
And I still can not solve the problem.
Im using MATLAB R2018b
Thanks for your time and help JP
Réponses (1)
Hi,
problably your script is named fit.m - Rename your script. It is not a good idea to name scripts like the function names of Matlab functions.
This Error is problably One of the Top Ten ;-)
Best regards
Stephan
Catégories
En savoir plus sur Interpolation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!