flag if plot Intersects itself
1 次查看(过去 30 天)
显示 更早的评论
I have an array of size n by 2 where column one has the x coordinates whilst column 2 has the y coordinates. I plan to plot these coordinates but I wanted to know if there is an easy way to know if this plot is going to intersect itself across the range of points n without manually plotting and observing the resuly.
1 个评论
Walter Roberson
2022-8-29
No, there are ways but no easy ways.
Plotting is not robust enough to determine this, as the distance between lines might be less than the width of a pixel.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!