Determine tangent lines on contour

2 views (last 30 days)
Armindo
Armindo on 6 Oct 2015
Commented: Armindo on 7 Oct 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 Comments
Armindo
Armindo on 7 Oct 2015
Edited: Armindo on 7 Oct 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 on 7 Oct 2015
solved through the use of convhull()

Sign in to comment.

Answers (0)

Categories

Find more on Contour Plots 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!