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
 All Forums
 Origin Forum
 Origin Forum
 interpolate on the specified columns

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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,

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000