How to check if two vectors of different length intersect?

13 vues (au cours des 30 derniers jours)
Martin Olafsen
Martin Olafsen le 27 Sep 2017
Réponse apportée : KSSV le 27 Sep 2017
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

Réponse acceptée

KSSV
KSSV le 27 Sep 2017

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by