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 for Programming
 LabTalk Forum
 find y coordinate for a given x coordinate on plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

somber

1 Posts

Posted - 09/26/2011 :  2:17:20 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello all,

Here is my case. I have a plot and I want to find the y coordinate for a given x coordinate on the curve. The data reader tool is not fit for me since the space between two x coordinates is too big, and I want to find out the point in between according to the curve. Screen reader can do this but the problem is I have too many plots of the same kind and I want to do this automatically.But screen reader need people to click on the curve. Could anyone please tell me if there is fittable way to solve this kind of problem?

Thank you very much for your time and consideration.

Jie

Penn

China
644 Posts

Posted - 09/26/2011 :  10:27:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jie,

You can perform interpolation of single values through range notation on the curve. For example, there are two points (1, 1) and (2, 2) in the curve, then you can use the following script to calculate the y value for the given x=1.5.

range rr = 1;  // get the first curve on the graph
rr(1.5) = ;  // get y for 1.5 by interpolation

For more details, please refer to Interpolation.

Penn
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