The function, find_intersection

The function gets the x and y components of two data sets and finds the intersection point.
534 Downloads
Updated 31 May 2011

View License

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 (2024). The function, find_intersection (https://www.mathworks.com/matlabcentral/fileexchange/31624-the-function-find_intersection), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0