The function, find_intersection

The function gets the x and y components of two data sets and finds the intersection point.

You are now following this Submission

To find the intersection point of two data sets can be non-trivial in case of the data sets have just a few data points.
In this case the both data sets can be interpolated so that there exist a number of data points large enough to find an intersection point.

The find_intersection function receives the x and y coordinates of two different data sets. It uses linear interpolation to increase the number of data points within each set. Then it finds the intersection point within the user-defined confidence level (ex: 1 or 2 %).

The function returns the x and y coordinate of the intersection point and a flag denoting the availability of an intersection point. Flag=1 means no intersection point, flag = 2 means there is an intersection point.

Cite As

Oznur Mete (2026). The function, find_intersection (https://www.mathworks.com/matlabcentral/fileexchange/31624-the-function-find_intersection), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interpolation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0