2.8.17 intersect


Brief Information

Calculate intersection points for two XY datasets

Command Line Usage

intersect iy1:=[Graph1]1!1 iy2:=[Graph1]1!2;

intersect iy1:=col(2) iy2:=col(4) method:=1 npts:=100;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy1

Input

XYRange

<active>
Specify the input XY range (curve) for the first curve for finding the intersection points
Input iy2

Input

XYRange

<active>
Specify the input XY range (curve) for the second curve for finding the intersection points
Method method

Input

int

0
Specify a method to interpolate the Y values when finding the intersection points. Three methods are available.

Option list:

  • linear:Linear{0}
  • spline:Cubic Spline{1}
  • bspline:Cubic B-Spline{2}

Notes: For more information about these three methods, please refer to the Interpolate Extrapolate Help page.

Sampling Points npts

Input

int

1000
Specify the number of interpolated points
Intersection Points oy

Output

XYRange

<new>
Specify the output range.

See the syntax here.

Examples

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