I am currently working on some automated fit procedure with NLSF. I would like to set the dependend variable y and the independend x freely. I tried to use the following:
// Init using nlsf = LabTalk.NLSF; nlsf.init(); nlsf.Func$ = "gauss"; nlsf.cleanUpFitData(); // Set data nlsf.setIndep("x",dsx_name); // set x dataset nlsf.setDepend("y",dsy_name); // set y dataset etc.
which did not work. Using instead for the data assignment:
// Set data nlsf.fitData1$ = dsy_name;
with proper column settings worked fine. But I would like to be able to use x-data either without setting the column type as x or even without being in the same worksheet as the y-data. Is it just the wrong syntax for nlsf.setIndep/setDepend ? The help file is not completely clear to me.