how to find visual angle
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have these three points(red dots) ,and I have to find angle, I am using polyfit function to calculate angle(finding slope first).

Now angle I am getting is near to 87 degrees, which is correct . But the thing is, I want to find the visual angle, which in this case will be near to 30 degrees. Any idea how to proceed with this? Thanks
3 Kommentare
Walter Roberson
am 10 Mai 2016
Which angle are you calculating as 87? (a-b) to (b-c) ? There is nothing that to me looks almost 90 degrees. But dot a- dot c- dot b might be maybe 115 degrees or so ?
Antworten (1)
Roger Stafford
am 10 Mai 2016
Bearbeitet: Roger Stafford
am 10 Mai 2016
The true angle between ba and bc would be:
ang = atan2( abs((xa-xb)*(yc-yb)-(ya-yb)*(xc-xb)) , ...
(xa-xb)*(xc-xb)+(ya-yb)*(yc-yb) );
Your plot without an 'axis equal' restriction will distort these angles.
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!
