Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculate intercept of two data sets

Status
Not open for further replies.

sloth4z

Mechanical
Aug 12, 2003
132
Is there a way to calculate the intercept of two data sets?

Example: I have a set of data "VX" which contains 100 points marking the X Points for data set 1 and 2. I also have "VY1" which contains 100 points marking the Y points for data set 1, and "VY2" which contains 100 points marking the Y points for data set 2. I want to calculate the X point that will return the same value when I do a linear interpolation of both sets of data.

In other words; how do I find the x value so that linterp(VX,VY1,X)=linterp(VX,VY2,X)?
 
Replies continue below

Recommended for you

After reading my own post I figured out I can use a solve block. I am still open to any suggestions you guys can offer.

X':=1
Given
linterp(VX,VY1,X')[ctrl+=]linterp(VX,VY2,X')
X:=Find(X')
 
That generally works well, with the possible exception when the intercept is near the end point of either line. I've done this on some specific problems and endpoints can give you squirrelly results.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor