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
 How to extract the spline data set?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

changtw

UK
Posts

Posted - 05/13/2004 :  08:58:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
After I plot the Spline Curve Graph, how can I access the Spline Data?

On the website, it says the spline data set is held internally, and it is possible to access it. But I just couldn't figure out how.

Many thanks!

easwar

USA
1964 Posts

Posted - 05/13/2004 :  10:11:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Here is one way to do this:

1> Plot your data as line or line+symbol, and change line connection type to spline/bspline etc (you have already done this)
2> Add two more columns to your original data worksheet, or create a new worksheet with two columns. Set the 1st added column as type X and the second as type Y. Let me assume you created a new worksheet, and the columns are data2_a and data2_b
3> Fill data2_a with x values at which you want to find the corresponding spline/bspline y values
4> With the graph window active, go to the script window (menu: Window->Script window) and type the following command and press Enter:
data2_b=%c(data2_a)

What this command does is to use the data2_a values as X, then use the internal parameters of the spline connection, and generate new Y values for each X value using the spline parameters, and places them in data2_b

Easwar
OriginLab

Go to Top of Page

changtw

UK
Posts

Posted - 05/13/2004 :  12:09:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much for your help.

Your method works great !!
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