how to automatically find the angle from 2 points ?

조회 수: 117 (최근 30일)
wongsathorn pinwihok
wongsathorn pinwihok 2020년 1월 25일
댓글: Adam Danz 2020년 1월 26일
I try to find the angle between 2 points that I manual put it in the image but I want to find the angle between this 2 points with automatically methods. WIN_20191107_14_49_54_Pro.jpg
How to do ? Thank you.
  댓글 수: 5
wongsathorn pinwihok
wongsathorn pinwihok 2020년 1월 25일
how can i define that 2 markers and find the angles like Akira said?
Adam Danz
Adam Danz 2020년 1월 26일
If point1 and point2 are defined by (x1,y1), (x2,y2), you can get the angle by
atan(abs(y2-y1)/abs(x2-x1)) % radians
% or
atand(abs(y2-y1)/abs(x2-x1)) % degrees
If you want to programmatically define the two points as well you'll have quite a bit more work to do starting with a solid definition of how they are located.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by