How do you find the coordinates of intersections of two lines?
1 次查看(过去 30 天)
显示 更早的评论
So this is a question I got in class and I tried using different methods to find the coordinates of two numbers and it gives me a NaN error.
2 个评论
回答(1 个)
Abhijeet
2022-6-6
编辑:Abhijeet
2022-6-8
Hi Gautam Kumar
I am assuming that the NaN error in your code is probably due to division by 0.This can happen if given two lines as input are collinear.
For finding coordinates of intersection of two points you can download and use the function line_intersection from MathWorks FIle Exchange .
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!