How to know which line is intersecting a curve mostly?

2 views (last 30 days)
I have a set of curves & a set of lines.I want to know which line intersects the most with a curve?

Answers (1)

KSSV
KSSV on 23 May 2017
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 Comments
Manas Ranjan Pattnayak
Manas Ranjan Pattnayak on 23 May 2017
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.

Sign in to comment.

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!