Filter löschen
Filter löschen

intersection point between 2-d plot and a line

3 Ansichten (letzte 30 Tage)
Mike Lee
Mike Lee am 27 Mär. 2017
Beantwortet: Robert Alvarez am 27 Mär. 2017
Hi,
I have 2-d plot that is based on data (two vectors) and a horizontal line function (using fplot).
I am trying to find intersection point of outer most line of 2-d plot(blue) and red line, in other words I want to get the intersection point where red line hits the first and the last. Then I want to find difference between intersection points of x axes, that is x2 - x1. How should I proceed?
Thank you
  1 Kommentar
Robert Alvarez
Robert Alvarez am 27 Mär. 2017
Try the PolylineIntersectSegment.m explained in this blog post:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Robert Alvarez
Robert Alvarez am 27 Mär. 2017
Whoops, put my answer in the comment:
Try the PolylineIntersectSegment.m explained in this blog post:

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by