Author |
Topic |
|
ulalume
Canada
1 Posts |
Posted - 07/23/2014 : 12:15:53 PM
|
Origin Ver. and Service Release (Select Help-->About Origin): 9.0 SR 2 (64bit) Operating System: win8
Hello;
I am new to using origin scripting, and am having troubles with a loop for Gaussian fitting of data (~400 colum of Y to one X). When I run my loop it gives the error:
Failed to resolve range string, VarName = iy, VarValue = (,ii), ii
I am not sure what the problem with my script is.
loop(ii, 2, wks.ncols) { nlbegin iy:=ii func:=gauss mode:=cons; nlfit 3; nlend 1; };
I would appreciate any help is solving the issue. |
|
lkb0221
China
497 Posts |
Posted - 07/24/2014 : 10:24:03 AM
|
Hi,
If you want a consolidated report with independent fits (mode:=cons), there is no loop needed. // nlbegin iy:=(1,2:$(wks.ncols)) func:=gauss mode:=cons; nlfit 3; nlend 1; //
Zheng OriginLab |
Edited by - lkb0221 on 07/24/2014 10:24:26 AM |
|
|
|
Topic |
|
|
|