:( I'm trying to fit a selected part of a function curve. Although I use nlsf.dataBegin and nlsf.dataEnd my script uses always the complete x-column --> so the fit result is total rubbish. Here the code:
[EXECFIT] nlsf.func$ = cubic; nlsf.dataBegin= Fstart; //some start value for fitting nlsf.dataEnd = Fend; nlsf.xBegin = fxdata[1]; //some start value for plotting the fit nlsf.xEnd = fxdata[2]; nlsf.cleanupfitdata(); nlsf.fitdata$ = Polyfit_TotMit; nlsf.xmode = 4; nlsf.funcx$ = Polyfit_PolyX; //dataset to store nlsf.funccol$ = Polyfit_PolyY; //dataset to store fitted Y values nlsf.iterate(20); nlsf.makecurve(func); //dataset generated for the fitted curve