find the index of Curve intersections

1 visualización (últimos 30 días)
Yang Lu
Yang Lu el 9 de En. de 2019
Respondida: Yang Lu el 6 de Feb. de 2019
Hi all,
I am programing to find the indexes of the intersections of two lines. I use the code Curve intersection by NS to find the intersection value but am not able to find the indexes of the intersection value using the 'k = find(y==constant)'. I think the reason is that the intersections are not in the two lines, so it returens back to null.
Thank you in advance.
kind regards.

Respuestas (2)

KSSV
KSSV el 10 de En. de 2019
Use knnsearch. This will give you the exact point if exists...or the nearest point to the intersection.....

Yang Lu
Yang Lu el 6 de Feb. de 2019
Hi,
I use InterX reference from https://uk.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curve-intersections to find the intersection coordinates first and then use 'find' command to search the shortest arc-length which is corresponding to the index of the intersection coordiantes.
Thank you.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by