T O P I C R E V I E W |
lillt91 |
Posted - 02/21/2018 : 06:18:35 AM Origin Ver. and Service Release (Select Help-->About Origin): 2015G 64bit Operating System: Windows 7 Home Edition
I tried to modify the script from https://www.originlab.com/doc/LabTalk/examples/Mathematics but my script won't interpolate any column.
n=2; for(ii=1; ii=27; ii++) { interp1xy iy:=[Book1]3025!$(ii) method:=spline npts:=154 oy:=[Book2]Sheet1!$(n); n++; }
My plan is to pick a specified column from my worksheet and interpolate the 27 columns in front of it, the column itself and the 27 columns behind it in a new book named Book2 starting with col(n-27) in [Book2]Sheet1!2; and ending with col(n+27) in [Book2]Sheet1!56;
Regards |
2 L A T E S T R E P L I E S (Newest First) |
lillt91 |
Posted - 02/21/2018 : 11:47:52 AM quote: Originally posted by YimingChen
Hi,
You may replace 3025 by "3025".
James,
Thank you for your answer! It works for this script:
n=2; loop(ii, 520, 575) { interp1xy iy:=[Book1]"2071"!wcol($(ii)) method:=spline npts:=154 oy:=[Book2]"Sheet1"!wcol($(n)); n++;} |
YimingChen |
Posted - 02/21/2018 : 10:20:07 AM Hi,
You may replace 3025 by "3025".
James,
|
|
|