The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 interpolate on the specified columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lillt91

Germany
14 Posts

Posted - 02/21/2018 :  06:18:35 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - lillt91 on 02/21/2018 11:40:46 AM

YimingChen

1606 Posts

Posted - 02/21/2018 :  10:20:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You may replace 3025 by "3025".

James,
Go to Top of Page

lillt91

Germany
14 Posts

Posted - 02/21/2018 :  11:47:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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++;}
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000