How to find intersection between two line
1 view (last 30 days)
Show older comments
Could anyone help me with this? I'm trying to find all of the points where my y and y_line interection. Thank you so much.
0 Comments
Answers (2)
KALYAN ACHARJYA
on 21 Apr 2020
Edited: KALYAN ACHARJYA
on 21 Apr 2020
idx=find(x==y)
And from the index, you get the value.
1 Comment
Rik
on 21 Apr 2020
This will only turn up values that are exactly equal. Considering that float rounding errors are likely, this could miss several intersections.
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!