The function, find_intersection
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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |