Specifically:
Output from function is [x,y] = myfunction(Sys,Exps,Opt)Error using ~=
Too many input arguments.
Error in /home/derek/Documents/MATLAB/easyspin/easyspin/esfit.p>esfit (line 130)
Providing esfit('myfunction',thegoal,Sys,Vary,Exps,Opt) where 'thegoal' is a vector of zeros of equal length and dimensions as y.
Any help with what is causing the error at line 130 of esfit would be greatly appreciated. I can attach a test data set, script, and the function if helpful.