How do I get the angle between three points input by ginput() in appdesigner?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
[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 Kommentare
Akzeptierte Antwort
David Hill
am 30 Nov. 2022
Bearbeitet: David Hill
am 30 Nov. 2022
z=[x,y];
d=diff(z);
Angle=acos(dot(-d(1,:),d(2,:))/norm(d(1,:))/norm(d(2,:)));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!