Undefined function or variable "scalefactor".
Error in C:\easyspin-5.2.30\easyspin\rescale.p>rescale (line 140)
Error in C:\easyspin-5.2.30\easyspin\esfit.p>assess (line 843)
Error in C:\easyspin-5.2.30\easyspin\esfit_simplex.p>esfit_simplex (line 77)
Error in C:\easyspin-5.2.30\easyspin\esfit.p>runFitting (line 681)
Error while evaluating uicontrol Callback
For the other files with the same system esfit works properly (except error with no scaling).
I override the problem using Sys.weight=-1 where appropriate, but it does not look like good solution.
Sorry, Stefan, the first issue isn't a bug in esfit. Real reason is incorrect units for Exp.Temperature (C instead of K) for custom simulation function. Correction of the temperature units solves the problem.
However, second issue is still actual. Example script basicfit.m with 'no scaling' throws an error
Undefined function or variable "scalefactor".
Error in C:\easyspin-5.2.30\easyspin\rescale.p>rescale (line 140)
Error in C:\easyspin-5.2.30\easyspin\esfit.p>assess (line 843)
Error in C:\easyspin-5.2.30\easyspin\esfit_simplex.p>esfit_simplex (line 77)
Error in C:\easyspin-5.2.30\easyspin\esfit.p>runFitting (line 681)
Error while evaluating uicontrol Callback