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 for Programming
 LabTalk Forum
 find y coordinate for a given x coordinate on plot

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
somber Posted - 09/26/2011 : 2:17:20 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 09/26/2011 : 10:27:35 PM
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

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