How to check if two vectors of different length intersect?

12 ビュー (過去 30 日間)
Martin Olafsen
Martin Olafsen 2017 年 9 月 27 日
回答済み: KSSV 2017 年 9 月 27 日
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

採用された回答

KSSV
KSSV 2017 年 9 月 27 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by