指定した点が、グラフ上の線の左側にあるか右側にあるかを判別したい
Mostrar comentarios más antiguos
お世話になります。
下図のように、(-1,-3)(4,13)(15,26)(19,39)の4つの点を結んだ線(plot関数で描画)が引かれているグラフにおいて、
任意の点が線の「左側」にあるのか「右側」にあるのかを判別したいのですが、どのような方法があるでしょうか?
線が2点を結ぶ直線なら一次関数で出せますが、複数の点で構成される線の場合、少し面倒です。
線のハンドルは保持しているので、それを用いて簡単に出す方法があればご教示頂きたいです。
尚、線は必ず右上方向に進む前提です。

よろしくお願い致します。
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!