필터 지우기
필터 지우기

How to check if two vectors of different length intersect?

조회 수: 3 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by