How to check if two vectors of different length intersect?

13 views (last 30 days)
I want to check if a straight line is touching a curve. I do not need to know the location of the possible intersections.
The straight line is made from two points, the start and the end point. While the curve is made up of hundreds of values. Both are defined by data in 2D.
I have looked into the intersect function, but it doesn't seem to apply to vectors with different length.
I could possibly make the straight line into hundreds of point and then look for the intersecting point. Is there an easier way to do this?
Regards

Accepted Answer

KSSV
KSSV on 27 Sep 2017

More Answers (0)

Community Treasure Hunt

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

Start Hunting!