How do I get the angle between three points input by ginput() in appdesigner?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
채호 박
el 30 de Nov. de 2022
Comentada: 채호 박
el 30 de Nov. de 2022
[x, y] = ginput(3);
app.UIFigure.HandleVisibility = fhv;
x = round(x);
y = round(y);
I received the input with ginput(), but I don't know how to convert it to angle.
(R2022b)
0 comentarios
Respuesta aceptada
David Hill
el 30 de Nov. de 2022
Editada: David Hill
el 30 de Nov. de 2022
z=[x,y];
d=diff(z);
Angle=acos(dot(-d(1,:),d(2,:))/norm(d(1,:))/norm(d(2,:)));
Más respuestas (0)
Ver también
Categorías
Más información sobre Axis Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!