Thanks Greg for answering.
But it doesnt work that much! At least It suppress one error for an another:
In a workbook : exp
Two Sheet : Sheet1 and Sheet2 (active)
In the active sheet :
Col(1) : A 1024points from 1 to 200
Col(2) : B simulated curve with ExpDecay2 function :
Parameters for the simulated curve are: y0=1 ; x0=10 ; A1=100 ; t1= 5; A2=40 ; t2=50 ;
+ 2% noise.
First point: it seams that some parameters initialization A2, t2 are missing!
I run the following script:
nlsf.func$ = ExpDecay2;
A1 = 120;
x0 =12;
y0 = 2; ;
A2=43;
t1=7;
t2=52;
nlsf.cleanupfitdata();
nlsf.fitdata$ = exp_b;
nlsf.iterate(40);
nlsf.xmode = 2;
nlsf.funcx$ = exp_A;
nlsf.funccol$ = exp_Fit;
nlsf.makecurve(func);
And I get the following error :
Error ! Too few data points, or the data step is too big
???
And the script exits without computing anything.
Someone understand what is wrong?