How to find intersection between two line
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/286172/image.png)
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 个评论
回答(2 个)
KALYAN ACHARJYA
2020-4-21
编辑:KALYAN ACHARJYA
2020-4-21
idx=find(x==y)
And from the index, you get the value.
1 个评论
Rik
2020-4-21
This will only turn up values that are exactly equal. Considering that float rounding errors are likely, this could miss several intersections.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!