Fast and Robust Curve Intersections

version (11.5 KB) by Douglas Schwarz
Computes intersection points of two curves.


Updated 26 May 2017

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This function computes the (x,y) locations where two curves intersect. The curves can be broken with NaNs or have vertical segments. It is also very fast (at least on data that represents what I think is a typical application).

Cite As

Douglas Schwarz (2022). Fast and Robust Curve Intersections (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!