how do i get the axact coordinates of a diagional line?

1 vue (au cours des 30 derniers jours)
Lorenzo Chatterpal
Lorenzo Chatterpal le 21 Oct 2014
Commenté : Image Analyst le 21 Oct 2014
Using the corner function.... On a straight line, and I am extracting the corners and obtaining the coordinates perfectly... However for a triangle for instance I only need 3 sets of coordinates, but because it is a diagonal line I am getting above 30 sets of coordinates because of its edges, how do I obtain the exact set of coordinates, and I want?

Réponse acceptée

Image Analyst
Image Analyst le 21 Oct 2014
I suppose the endpoints of the edge lines would be the first element and the last element. So theLine(1) and theLine(end).
  2 commentaires
Lorenzo Chatterpal
Lorenzo Chatterpal le 21 Oct 2014
So by using those 2 coordinates, I can get the equation of line and find points of intersection... Which will be the 2md line?
Image Analyst
Image Analyst le 21 Oct 2014
I have no idea what kind of data you have, other than it's three 30-element long arrays that define the three edges of a triangle. But that's not really enough for me to go on. I don't even know what a "2md" line is. How is that related to the three other lines you have? I have no idea. Read this http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by