This function computes the locations where a curve self-intersects in a fast and robust way. The curve can be broken with NaNs or have vertical segments. Segments of the curve involved in each of the self-interesections are also provided.
Example of use:
axis ('equal'); grid
Antoni J. Canós (2023). Fast and Robust Self-Intersections (https://www.mathworks.com/matlabcentral/fileexchange/13351-fast-and-robust-self-intersections), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Fast and Robust Curve Intersections
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!