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
 Do an interpolation directly with LabTalk...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/18/1998 :  1:17:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How can we do an interpolation directly with LabTalk.
Example:
10 5
11 6
12 7
13 8

and after interpolation

10 5
10.5 5.5
11 6
11.5 6.5
12 7
12.5 7.5
13 8

This result are obtained with Analysis/Inter/Extrapolate...
with this parameters
Make Curve Xmin = 10
Make Curve Xmax = 13
Make Curve # pts = 7

We want to do this directly with LabTalk !

Thanks in advance !
Levent

Joe Przechocki

USA
6 Posts

Posted - 08/18/1998 :  1:34:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Simple Interpolation of given XY pairs

If you have some XY data, and want to interpolate to find new Y values from an
array of new X values, it can be done easily.

Suppose you have

DATA1

A B

10 5
11 6
12 7
13 8

and you want

DATA2

A B

10 5
10.5 5.5
11 6
11.5 6.5
12 7
12.5 7.5
13 8

then simply construct a new X column in a new worksheet, so you now have

DATA2

A B
10
10.5
11
11.5
12
12.5
13

and type DATA2_B=DATA1_B(DATA2_A) and hit ENTER

Origin will assign new values to DATA2_B using DATA1_A's values as new X values
for Data1_B.

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