How to know which line is intersecting a curve mostly?

1 回表示 (過去 30 日間)
Manas Ranjan Pattnayak
Manas Ranjan Pattnayak 2017 年 5 月 22 日
コメント済み: KSSV 2017 年 5 月 23 日
I have a set of curves & a set of lines.I want to know which line intersects the most with a curve?

回答 (1 件)

KSSV
KSSV 2017 年 5 月 23 日
Use this function from file exchange: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function to get the intersection points. Use this for all line and curves in a loop. If they intersect you will get a point, if not the output would be empty.
  2 件のコメント
Manas Ranjan Pattnayak
Manas Ranjan Pattnayak 2017 年 5 月 23 日
Kindly check the image which I have uploaded.There are 5 curves & 3 lines in the graph.I have the matlab codes for all the curves & lines.
In the picture its clearly visible that the middle line is intersecting the most with the third curve.The intersection of other lines with other curves are just like 1 point or two point intersection.
But the second lines almost goes on the third curve.
I want to know the equation of that line & curve automatically from matlab computation.Kindly help.
KSSV
KSSV 2017 年 5 月 23 日
This can be done in the way I said...

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

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by