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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Image Analyst
Image Analyst il 21 Ott 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 Commenti
Lorenzo Chatterpal
Lorenzo Chatterpal il 21 Ott 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 il 21 Ott 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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by