flag if plot Intersects itself

3 ビュー (過去 30 日間)
Ahmed
Ahmed 2022 年 8 月 29 日
回答済み: Bruno Luong 2022 年 8 月 29 日
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
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.

サインインしてコメントする。

採用された回答

Bruno Luong
Bruno Luong 2022 年 8 月 29 日

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by