flag if plot Intersects itself

3 Ansichten (letzte 30 Tage)
Ahmed
Ahmed am 29 Aug. 2022
Beantwortet: Bruno Luong am 29 Aug. 2022
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 Kommentar
Walter Roberson
Walter Roberson am 29 Aug. 2022
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Bruno Luong
Bruno Luong am 29 Aug. 2022

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by