Calculate intersection points for two XY datasets
intersect iy1:=[Graph1]1!1 iy2:=[Graph1]1!2;
intersect iy1:=col(2) iy2:=col(4) method:=1 npts:=100;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | iy1 |
Input XYRange |
|
Specify the input XY range (curve) for the first curve for finding the intersection points |
Input | iy2 |
Input XYRange |
|
Specify the input XY range (curve) for the second curve for finding the intersection points |
Method | method |
Input int |
|
Specify a method to interpolate the Y values when finding the intersection points. Three methods are available.
Option list:
Notes: For more information about these three methods, please refer to the Interpolate Extrapolate Help page. |
Sampling Points | npts |
Input int |
|
Specify the number of interpolated points |
Intersection Points | oy |
Output XYRange |
|
Specify the output range.
See the syntax here. |
This Labtalk script example shows you how to calculate the intersection for two datasets:
newbook; col(1)=data(1,15,1); col(2)=data(1,15,1); col(3)=col(1)*2-7; intersect iy1:=col(2) iy2:=col(3) method:=0 npts:=100