Borrar filtros
Borrar filtros

Endpoints of drawline()

11 visualizaciones (últimos 30 días)
azhao
azhao el 11 de Jul. de 2020
Comentada: dpb el 12 de Jul. de 2020
Hi all,
I'm trying to record the endpoints of the drawline() function in an array so I could record the distance. Is there a way to do this? Or is there a better way to draw a line and record the endpoints' coordinates/ calculate the distance between the endpoints?
Thanks!
  6 comentarios
dpb
dpb el 12 de Jul. de 2020
I grok that if search local installed doc, but in the online search as well? That truly sucks if they've done that on purpose.
dpb
dpb el 12 de Jul. de 2020
Well, I don't know why didn't yesterday; today it did return the function reference...maybe something was momentarily offline yesterday when got the failure...

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Jul. de 2020
h = drawline();
ep = h.Position;
x1 = ep(1,1); y1 = ep(1,2); x2 = ep(2,1); y2 = ep(2,2);
  1 comentario
azhao
azhao el 12 de Jul. de 2020
Thanks so much!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by