Determine tangent lines on contour

2 Ansichten (letzte 30 Tage)
Armindo
Armindo am 6 Okt. 2015
Kommentiert: Armindo am 7 Okt. 2015
Hi,
I have the following plot (a surf plot with a contour3 plot): http://postimg.org/image/snb7nqilj/
Basically I need to determine the tangent lines at black. First I think to detect the lower and higher value of X to determine the above points of the image. However if the image is more rotated to the right the higher value of X could be in the toe region (this cant be seen in this image but is possible to occur). There is any function that could help me determine this points to draw these tangent lines?
  2 Kommentare
Armindo
Armindo am 7 Okt. 2015
Bearbeitet: Armindo am 7 Okt. 2015
Any help would be apreciated. As You can see in the image bellow I can get the tangent lines at red by determine the most right and left X positions for the lower and higher regions of the image. In this processed I used the contourc to retrieve the contour line. The problem is that due the rotation of the image sometimes the tangent pass inside the image. The red line at right should be like the yellow tangent. Any details and help about how to acomplish this would be apreciated.
Armindo
Armindo am 7 Okt. 2015
solved through the use of convhull()

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Contour Plots 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